Class MessageIn
MessageIn
class represents an incoming voice message.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns an instance of theContact
that authored the message.getFrom()
Returns an instance of theContact
that is sending the user the message.boolean
isActive()
Determines if theMessageIn
is currently in progress or not.void
reset()
Resets theMessageIn
instance back to the default values.
-
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
-
getFrom
Returns an instance of the
Contact
that is sending the user the message.If the
ContactType
isContactType.CHANNEL
,ContactType.GROUP
orContactType.CONVERSATION
, the returnedContact
is 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
Contact
that is sending the message. - See Also:
-
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 thegetFrom()
method isContactType.CHANNEL
,ContactType.GROUP
orContactType.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.
-