-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add the source ID to the register events API request (#84)
- Loading branch information
1 parent
40bed43
commit 374218a
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
Bucketeer/Sources/Internal/Remote/RequestBody/RegisterEventsRequestBody.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import Foundation | ||
|
||
struct RegisterEventsRequestBody: Codable { | ||
internal init(events: [Event] = [], | ||
sdkVersion: String = Version.current, | ||
sourceId: SourceID = SourceID.ios | ||
) { | ||
self.events = events | ||
self.sdkVersion = sdkVersion | ||
self.sourceId = sourceId | ||
} | ||
|
||
let events: [Event] | ||
let sdkVersion: String | ||
let sourceId: SourceID | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters