WATInvite

public class WATInvite

Class to be used to accept or reject invitations.

  • The user unique identifier the invitation comes from.

    Declaration

    Swift

    public internal(set) var from: String
  • The room unique identifier the invitation refers to.

    Declaration

    Swift

    public internal(set) var room: String
  • Status of the invitation : ONGOING, ACCEPTED, REJECTED (not automatically updated for this version).

    Declaration

    Swift

    public internal(set) var status: String
  • The text the user may read as an invitation message.

    Declaration

    Swift

    public internal(set) var topic: String
  • Accepts the received WATInvite instance.

    Declaration

    Swift

    public func accept(completeCallback:@escaping(_ error: Error?, _ info: WATInvite?) -> Void)

    Parameters

    completeCallback

    Block called once invitation has been accepted. On failure, the first argument contains the details of the error while the second one returns the WATInvite instance.

  • Rejects the received WATInvite instance.

    Declaration

    Swift

    public func reject(reason: String,
                       completeCallback:@escaping(_ error: Error?, _ info: WATInvite) -> Void)

    Parameters

    reason

    text that explains why the invitation hasn’t been accepted.

    completeCallback

    Block called once rejection has been received. On failure, the first argument contains the details of the error while the second one returns the WATInvite instance.