Package com.zello.sdk

Enum Class ContactStatus

java.lang.Object
java.lang.Enum<ContactStatus>
com.zello.sdk.ContactStatus
All Implemented Interfaces:
Serializable, Comparable<ContactStatus>, Constable

public enum ContactStatus extends Enum<ContactStatus>

The ContactStatus enum represents the status of a Contact.

For the status of the current user, see the Status enum.

  • Enum Constant Details

    • OFFLINE

      public static final ContactStatus OFFLINE

      Contact is offline.

      Messages cannot be sent to a channel with this status. If the channel is OFFLINE you need to connect to it before sending the message.

      Messages can be sent to a user with this status and are saved locally for later delivery, which happens when the user comes back online.

    • AVAILABLE

      public static final ContactStatus AVAILABLE

      Contact is online and available to talk.

      Messages are immediately delivered to a contact with this status.

    • BUSY

      public static final ContactStatus BUSY

      Contact is online but currently busy.

      Messages are delivered to a contact with this status and are saved to their history. However, they do not play live and are not delivered to the Zello SDK.

    • STANDBY

      public static final ContactStatus STANDBY

      Contact is offline but was recently online.

      Messages sent to a contact with this status are saved on the server and delivered to the contact the next time they sign in. Depending on the platform and configuration, they may also get a push notification about the message.

    • CONNECTING

      public static final ContactStatus CONNECTING

      The channel is in the process of connecting.

      This status only applies to channels. You cannot send messages to a channel in this state.

      See Also:
  • Method Details

    • values

      public static ContactStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ContactStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null