fix iOS build blockers and add project scaffold
This commit is contained in:
@@ -91,7 +91,8 @@ struct HermesAPIClient {
|
||||
}
|
||||
|
||||
func submitAnalyticsBatch(_ payload: HermesAnalyticsBatchRequest) async throws {
|
||||
try await perform(path: "api/v1/analytics/batch", method: "POST", body: payload)
|
||||
let encodedBody = try encoder.encode(payload)
|
||||
_ = try await perform(path: "api/v1/analytics/batch", method: "POST", body: encodedBody)
|
||||
}
|
||||
|
||||
private func send<Response: Decodable>(path: String, method: String = "GET") async throws -> Response {
|
||||
|
||||
@@ -113,14 +113,6 @@ struct HermesRound: Codable {
|
||||
var settlement: HermesSettlement
|
||||
}
|
||||
|
||||
struct HermesRound: Codable {
|
||||
var event: HermesEvent
|
||||
var media: HermesEventMedia
|
||||
var market: HermesMarket
|
||||
var oddsVersion: HermesOddsVersion
|
||||
var settlement: HermesSettlement
|
||||
}
|
||||
|
||||
struct HermesBetIntentRequest: Codable {
|
||||
var sessionId: UUID
|
||||
var eventId: UUID
|
||||
|
||||
Reference in New Issue
Block a user