Skip to content

Instantly share code, notes, and snippets.

@owensd
Created May 29, 2017 05:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save owensd/6231ef3901497fe3a7da28325526bcef to your computer and use it in GitHub Desktop.
public struct Registration {
public init(id: String, method: String, registerOptions: AnyEncodable? = nil) {
self.id = id
self.method = method
self.registerOptions = registerOptions
}
/// The id used to register the request. The id can be used to deregister the request again.
public var id: String
/// The method / capability to register for.
public var method: String
/// Options necessary for the registration.
public var registerOptions: AnyEncodable?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment