mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
sdk bump, last one for today I swear (#1134)
This commit is contained in:
@@ -384,29 +384,54 @@ class SDKClientMock: SDKClientProtocol {
|
||||
logoutCallsCount += 1
|
||||
try logoutClosure?()
|
||||
}
|
||||
//MARK: - `notificationSlidingSync`
|
||||
//MARK: - `mainEncryptionSync`
|
||||
|
||||
public var notificationSlidingSyncIdListenerThrowableError: Error?
|
||||
public var notificationSlidingSyncIdListenerCallsCount = 0
|
||||
public var notificationSlidingSyncIdListenerCalled: Bool {
|
||||
return notificationSlidingSyncIdListenerCallsCount > 0
|
||||
public var mainEncryptionSyncIdListenerThrowableError: Error?
|
||||
public var mainEncryptionSyncIdListenerCallsCount = 0
|
||||
public var mainEncryptionSyncIdListenerCalled: Bool {
|
||||
return mainEncryptionSyncIdListenerCallsCount > 0
|
||||
}
|
||||
public var notificationSlidingSyncIdListenerReceivedArguments: (`id`: String, `listener`: NotificationSyncListener)?
|
||||
public var notificationSlidingSyncIdListenerReceivedInvocations: [(`id`: String, `listener`: NotificationSyncListener)] = []
|
||||
public var notificationSlidingSyncIdListenerReturnValue: NotificationSync!
|
||||
public var notificationSlidingSyncIdListenerClosure: ((String, NotificationSyncListener) throws -> NotificationSync)?
|
||||
public var mainEncryptionSyncIdListenerReceivedArguments: (`id`: String, `listener`: EncryptionSyncListener)?
|
||||
public var mainEncryptionSyncIdListenerReceivedInvocations: [(`id`: String, `listener`: EncryptionSyncListener)] = []
|
||||
public var mainEncryptionSyncIdListenerReturnValue: EncryptionSync!
|
||||
public var mainEncryptionSyncIdListenerClosure: ((String, EncryptionSyncListener) throws -> EncryptionSync)?
|
||||
|
||||
public func `notificationSlidingSync`(`id`: String, `listener`: NotificationSyncListener) throws -> NotificationSync {
|
||||
if let error = notificationSlidingSyncIdListenerThrowableError {
|
||||
public func `mainEncryptionSync`(`id`: String, `listener`: EncryptionSyncListener) throws -> EncryptionSync {
|
||||
if let error = mainEncryptionSyncIdListenerThrowableError {
|
||||
throw error
|
||||
}
|
||||
notificationSlidingSyncIdListenerCallsCount += 1
|
||||
notificationSlidingSyncIdListenerReceivedArguments = (id: id, listener: listener)
|
||||
notificationSlidingSyncIdListenerReceivedInvocations.append((id: id, listener: listener))
|
||||
if let notificationSlidingSyncIdListenerClosure = notificationSlidingSyncIdListenerClosure {
|
||||
return try notificationSlidingSyncIdListenerClosure(`id`, `listener`)
|
||||
mainEncryptionSyncIdListenerCallsCount += 1
|
||||
mainEncryptionSyncIdListenerReceivedArguments = (id: id, listener: listener)
|
||||
mainEncryptionSyncIdListenerReceivedInvocations.append((id: id, listener: listener))
|
||||
if let mainEncryptionSyncIdListenerClosure = mainEncryptionSyncIdListenerClosure {
|
||||
return try mainEncryptionSyncIdListenerClosure(`id`, `listener`)
|
||||
} else {
|
||||
return notificationSlidingSyncIdListenerReturnValue
|
||||
return mainEncryptionSyncIdListenerReturnValue
|
||||
}
|
||||
}
|
||||
//MARK: - `notificationEncryptionSync`
|
||||
|
||||
public var notificationEncryptionSyncIdListenerNumItersThrowableError: Error?
|
||||
public var notificationEncryptionSyncIdListenerNumItersCallsCount = 0
|
||||
public var notificationEncryptionSyncIdListenerNumItersCalled: Bool {
|
||||
return notificationEncryptionSyncIdListenerNumItersCallsCount > 0
|
||||
}
|
||||
public var notificationEncryptionSyncIdListenerNumItersReceivedArguments: (`id`: String, `listener`: EncryptionSyncListener, `numIters`: UInt8)?
|
||||
public var notificationEncryptionSyncIdListenerNumItersReceivedInvocations: [(`id`: String, `listener`: EncryptionSyncListener, `numIters`: UInt8)] = []
|
||||
public var notificationEncryptionSyncIdListenerNumItersReturnValue: EncryptionSync!
|
||||
public var notificationEncryptionSyncIdListenerNumItersClosure: ((String, EncryptionSyncListener, UInt8) throws -> EncryptionSync)?
|
||||
|
||||
public func `notificationEncryptionSync`(`id`: String, `listener`: EncryptionSyncListener, `numIters`: UInt8) throws -> EncryptionSync {
|
||||
if let error = notificationEncryptionSyncIdListenerNumItersThrowableError {
|
||||
throw error
|
||||
}
|
||||
notificationEncryptionSyncIdListenerNumItersCallsCount += 1
|
||||
notificationEncryptionSyncIdListenerNumItersReceivedArguments = (id: id, listener: listener, numIters: numIters)
|
||||
notificationEncryptionSyncIdListenerNumItersReceivedInvocations.append((id: id, listener: listener, numIters: numIters))
|
||||
if let notificationEncryptionSyncIdListenerNumItersClosure = notificationEncryptionSyncIdListenerNumItersClosure {
|
||||
return try notificationEncryptionSyncIdListenerNumItersClosure(`id`, `listener`, `numIters`)
|
||||
} else {
|
||||
return notificationEncryptionSyncIdListenerNumItersReturnValue
|
||||
}
|
||||
}
|
||||
//MARK: - `restoreSession`
|
||||
@@ -450,6 +475,27 @@ class SDKClientMock: SDKClientProtocol {
|
||||
return roomListReturnValue
|
||||
}
|
||||
}
|
||||
//MARK: - `roomListWithEncryption`
|
||||
|
||||
public var roomListWithEncryptionThrowableError: Error?
|
||||
public var roomListWithEncryptionCallsCount = 0
|
||||
public var roomListWithEncryptionCalled: Bool {
|
||||
return roomListWithEncryptionCallsCount > 0
|
||||
}
|
||||
public var roomListWithEncryptionReturnValue: RoomList!
|
||||
public var roomListWithEncryptionClosure: (() throws -> RoomList)?
|
||||
|
||||
public func `roomListWithEncryption`() throws -> RoomList {
|
||||
if let error = roomListWithEncryptionThrowableError {
|
||||
throw error
|
||||
}
|
||||
roomListWithEncryptionCallsCount += 1
|
||||
if let roomListWithEncryptionClosure = roomListWithEncryptionClosure {
|
||||
return try roomListWithEncryptionClosure()
|
||||
} else {
|
||||
return roomListWithEncryptionReturnValue
|
||||
}
|
||||
}
|
||||
//MARK: - `rooms`
|
||||
|
||||
public var roomsCallsCount = 0
|
||||
|
||||
Reference in New Issue
Block a user