Class MessageIn
MessageIn class represents an incoming voice message.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns an instance of theContactthat authored the message.getFrom()Returns an instance of theContactthat is sending the user the message.booleanisActive()Determines if theMessageInis currently in progress or not.voidreset()Resets theMessageIninstance back to the default values.
-
Constructor Details
-
MessageIn
public MessageIn()
-
-
Method Details
-
reset
public void reset()Resets the
MessageIninstance 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
-
getFrom
Returns an instance of the
Contactthat is sending the user the message.If the
ContactTypeisContactType.CHANNEL,ContactType.GROUPorContactType.CONVERSATION, the returnedContactis a channel, a group, or a conversation, respectively. For channels, groups and conversations, use thegetAuthor()method to get the original author of the message.- Returns:
- The
Contactthat is sending the message. - See Also:
-
getAuthor
Returns an instance of the
Contactthat authored the message.This method should only be used to get the author of a message when the
ContactTypeof thegetFrom()method isContactType.CHANNEL,ContactType.GROUPorContactType.CONVERSATION.- Returns:
- The
Contactthat authored the message.
-
isActive
public boolean isActive()Determines if the
MessageInis currently in progress or not.- Returns:
- boolean indicating if the incoming message is currently active.
-