Account

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

The ZDKChatAccount model stores information about the chat account, such as the current accountStatus and the list of Departments associated with the 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]?
  • 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

  • Declaration

    Swift

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

    Return Value

    True if department with given name exists