ResolveEvent

public class ResolveEvent : CommunicationEvent<ResolveEventData>

ResolveEvent provides a generic implementation for responding to a DiscoverEvent.

Static Factory Methods.

  • Create a ResolveEvent instance for resolving the given object and optional private data.

    Declaration

    Swift

    public static func with(object: CoatyObject, privateData: [String : Any]? = nil) -> ResolveEvent

    Parameters

    object

    the object to be resolved

    privateData

    private data object (optional)

    Return Value

    a Resolve event with the given parameters

  • Create a ResolveEvent instance for resolving the given related objects and optional private data.

    Declaration

    Swift

    public static func with(relatedObjects: [CoatyObject],
    
                     privateData: [String: Any]? = nil) -> ResolveEvent

    Parameters

    relatedObjects

    related objects to be resolved

    privateData

    private data object (optional)

    Return Value

    a Query event with the given parameters

  • Create a ResolveEvent instance for resolving the given object, related object, and optional private data.

    Declaration

    Swift

    public static func with(object: CoatyObject, relatedObjects: [CoatyObject],
    
                     privateData: [String: Any]? = nil) -> ResolveEvent

    Parameters

    object

    the object to be resolved

    relatedObjects

    related objects to be resolved

    privateData

    private data object (optional)

    Return Value

    a Query event with the given parameters

Codable methods.

  • Undocumented

    Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Undocumented

    Declaration

    Swift

    override public func encode(to encoder: Encoder) throws