Package com.zello.sdk

Class MessageIn

java.lang.Object
com.zello.sdk.MessageIn

public class MessageIn extends Object
The MessageIn class represents an incoming voice message.
See Also:
  • Constructor Details

    • MessageIn

      public MessageIn()
  • Method Details

    • reset

      public void reset()

      Resets the MessageIn instance back to the default values.

      This method does not affect the state of the incoming message to the Zello Work app. This method only resets the values for this copied instance of the MessageIn.

    • clone

      @NonNull public MessageIn clone()
    • getFrom

      @NonNull public Contact getFrom()

      Returns an instance of the Contact that is sending the user the message.

      If the ContactType is ContactType.CHANNEL, ContactType.GROUP or ContactType.CONVERSATION, the returned Contact is a channel, a group, or a conversation, respectively. For channels, groups and conversations, use the getAuthor() method to get the original author of the message.

      Returns:
      The Contact that is sending the message.
      See Also:
    • getAuthor

      @NonNull public Contact getAuthor()

      Returns an instance of the Contact that authored the message.

      This method should only be used to get the author of a message when the ContactType of the getFrom() method is ContactType.CHANNEL, ContactType.GROUP or ContactType.CONVERSATION.

      Returns:
      The Contact that authored the message.
    • isActive

      public boolean isActive()

      Determines if the MessageIn is currently in progress or not.

      Returns:
      boolean indicating if the incoming message is currently active.