DiscoverEvent
public class DiscoverEvent : CommunicationEvent<DiscoverEventData>
DiscoverEvent provides a generic implementation for discovering CoatyObjects. Note that this class should preferably be initialized by its withObject() method.
-
Create a DiscoverEvent instance for discovering objects with the given external Id.
Declaration
Swift
public static func with(externalId: String) -> DiscoverEventParameters
externalIdthe external ID to discover
-
Create a DiscoverEvent instance for discovering objects with the given external Id and core types.
Declaration
Swift
public static func with(externalId: String, coreTypes: [CoreType]) -> DiscoverEventParameters
externalIdthe external ID to discover
coreTypesan array of core types to discover
-
Create a DiscoverEvent instance for discovering objects with the given external Id and object types.
Declaration
Swift
public static func with(externalId: String, objectTypes: [String]) -> DiscoverEventParameters
externalIdthe external ID to discover.
objectTypesan array of object types to discover.
-
Create a DiscoverEvent instance for discovering objects with the given object Id.
Declaration
Swift
public static func with(objectId: CoatyUUID) -> DiscoverEventParameters
objectIdthe object ID to discover
-
Create a DiscoverEvent instance for discovering objects with the given external Id and object Id.
Declaration
Swift
public static func with(externalId: String, objectId: CoatyUUID) -> DiscoverEventParameters
externalIdthe external ID to discover
objectIdthe object ID to discover
-
Create a DiscoverEvent instance for discovering objects with the given core types.
Declaration
Swift
public static func with(coreTypes: [CoreType]) -> DiscoverEventParameters
coreTypescoreTypes the core types to discover
-
Create a DiscoverEvent instance for discovering objects with the given object types.
Declaration
Swift
public static func with(objectTypes: [String]) -> DiscoverEventParameters
objectTypesthe object types to discover
-
Respond to a Discover event with the given Resolve event.
Declaration
Swift
public func resolve(resolveEvent: ResolveEvent)Parameters
resolveEventa Resolve event.
-
Undocumented
Declaration
Swift
public required init(from decoder: Decoder) throws -
Undocumented
Declaration
Swift
override public func encode(to encoder: Encoder) throws
View on GitHub
DiscoverEvent Class Reference