Skip to content
Snippets Groups Projects

Update Bindings

Merged Dariusz Rybicki requested to merge dev/update-bindings into development
2 files
+ 10
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -10,7 +10,8 @@ public struct Message: Equatable {
@@ -10,7 +10,8 @@ public struct Message: Equatable {
ephemeralId: Int,
ephemeralId: Int,
timestamp: Int,
timestamp: Int,
encrypted: Bool,
encrypted: Bool,
roundId: Int
roundId: Int,
 
roundURL: String
) {
) {
self.messageType = messageType
self.messageType = messageType
self.id = id
self.id = id
@@ -21,6 +22,7 @@ public struct Message: Equatable {
@@ -21,6 +22,7 @@ public struct Message: Equatable {
self.timestamp = timestamp
self.timestamp = timestamp
self.encrypted = encrypted
self.encrypted = encrypted
self.roundId = roundId
self.roundId = roundId
 
self.roundURL = roundURL
}
}
public var messageType: Int
public var messageType: Int
@@ -32,6 +34,7 @@ public struct Message: Equatable {
@@ -32,6 +34,7 @@ public struct Message: Equatable {
public var timestamp: Int
public var timestamp: Int
public var encrypted: Bool
public var encrypted: Bool
public var roundId: Int
public var roundId: Int
 
public var roundURL: String
}
}
extension Message: Codable {
extension Message: Codable {
@@ -45,6 +48,7 @@ extension Message: Codable {
@@ -45,6 +48,7 @@ extension Message: Codable {
case timestamp = "Timestamp"
case timestamp = "Timestamp"
case encrypted = "Encrypted"
case encrypted = "Encrypted"
case roundId = "RoundId"
case roundId = "RoundId"
 
case roundURL = "RoundURL"
}
}
public static func decode(_ data: Data) throws -> Self {
public static func decode(_ data: Data) throws -> Self {
Loading