Skip to content
Snippets Groups Projects
Select Git revision
  • d6f65882812e2e48432512a27cc17e28fc54efe0
  • main default protected
  • development
  • integration
  • v1.1.5
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.0
11 results

E2ESend.swift

Blame
  • E2ESend.swift 606 B
    import Bindings
    import XCTestDynamicOverlay
    
    public struct E2ESend {
      public var run: (Int, Data, Data, Data) throws -> Data
    
      public func callAsFunction(
        messageType: Int,
        recipientId: Data,
        payload: Data,
        e2eParams: Data
      ) throws -> Data {
        try run(messageType, recipientId, payload, e2eParams)
      }
    }
    
    extension E2ESend {
      public static func live(_ bindingsE2E: BindingsE2e) -> E2ESend {
        E2ESend(run: bindingsE2E.sendE2E(_:recipientId:payload:e2eParams:))
      }
    }
    
    extension E2ESend {
      public static let unimplemented = E2ESend(
        run: XCTUnimplemented("\(Self.self)")
      )
    }