Account

@objc(ZDKChatAccount)
public final class Account : NSObject, InitialStateProtocol
  • Declaration

    Swift

    public static let initial: Account
  • The current status of the Account

    Declaration

    Swift

    @objc
    public let accountStatus: AccountStatus
  • [Department] in the chat instance

    Declaration

    Swift

    @objc
    public let departments: [Department]?
  • Declaration

    Swift

    @objc
    public init(accountStatus: AccountStatus, departments: [Department]?)
  • Returns a Boolean value that indicates whether the receiver and a given object are equal.

    Declaration

    Swift

    @objc
    override public func isEqual(_ object: Any?) -> Bool

    Parameters

    object

    the object to compare against

  • Returns TRUE if department with given name exists

    Declaration

    Swift

    @objc
    public func containsDepartment(with name: String) -> Bool