java.lang.Object | |
↳ | com.gsma.services.rcs.chat.GroupChat |
Group chat
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | GroupChat.ParticipantStatus | Group chat participant status | |||||||||
enum | GroupChat.ReasonCode | Group chat state reason code | |||||||||
enum | GroupChat.State | Group chat state |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | getChatId() | ||||||||||
RcsService.Direction |
getDirection()
Returns the direction of the group chat
| ||||||||||
int |
getMaxParticipants()
Returns the max number of participants in the group chat.
| ||||||||||
Map<ContactId, GroupChat.ParticipantStatus> |
getParticipants()
Returns the map of participants and associated status .
| ||||||||||
GroupChat.ReasonCode |
getReasonCode()
Returns the reason code of the state of the group chat
| ||||||||||
ContactId |
getRemoteContact()
Returns the remote contact
| ||||||||||
GroupChat.State |
getState()
Returns the state of the group chat
| ||||||||||
String |
getSubject()
Returns the subject of the group chat
| ||||||||||
long |
getTimestamp()
Returns the local timestamp of when the group chat invitation was initiated for outgoing
group chats or the local timestamp of when the group chat invitation was received for
incoming group chat invitations.
| ||||||||||
void |
inviteParticipants(Set<ContactId> participants)
Invite additional participants to this group chat.
| ||||||||||
boolean |
isAllowedToInviteParticipant(ContactId participant)
Returns true if it is possible to invite the specified participant to the group chat right
now, else returns false.
| ||||||||||
boolean |
isAllowedToInviteParticipants()
Returns true if it is possible to invite additional participants to the group chat right now,
else returns false.
| ||||||||||
boolean |
isAllowedToLeave()
Returns true if it is possible to leave this group chat.
| ||||||||||
boolean |
isAllowedToSendMessage()
Returns true if it is possible to send messages in the group chat right now, else returns
false.
| ||||||||||
void |
leave()
Leaves a group chat willingly and permanently.
| ||||||||||
void |
openChat()
open the chat conversation.
| ||||||||||
ChatMessage |
sendMessage(Geoloc geoloc)
Sends a geoloc message
| ||||||||||
ChatMessage |
sendMessage(String text)
Sends a text message to the group
| ||||||||||
void |
setComposingStatus(boolean ongoing)
This method should be called to notify the stack of if there is ongoing composing or not in
this GroupChat.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns the direction of the group chat
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the max number of participants in the group chat. This limit is read during the conference event subscription and overrides the provisioning parameter.
RcsGenericException |
---|
Returns the map of participants and associated status .
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the reason code of the state of the group chat
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the remote contact
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the state of the group chat
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the subject of the group chat
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the local timestamp of when the group chat invitation was initiated for outgoing group chats or the local timestamp of when the group chat invitation was received for incoming group chat invitations.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Invite additional participants to this group chat.
participants | List of participants |
---|
RcsPermissionDeniedException | |
RcsPersistentStorageException | |
RcsGenericException | |
RcsPermissionDeniedException | |
RcsPersistentStorageException |
Returns true if it is possible to invite the specified participant to the group chat right now, else returns false.
participant | the contact ID |
---|
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns true if it is possible to invite additional participants to the group chat right now, else returns false.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns true if it is possible to leave this group chat.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns true if it is possible to send messages in the group chat right now, else returns false.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Leaves a group chat willingly and permanently. The group chat will continue between other participants if there are enough participants.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
open the chat conversation.
Note: if it is an incoming pending chat session and the parameter IM SESSION START is 0 then
the session is accepted now.
RcsGenericException |
---|
Sends a geoloc message
geoloc | Geoloc info |
---|
RcsPermissionDeniedException | |
RcsPersistentStorageException | |
RcsGenericException | |
RcsPermissionDeniedException | |
RcsPersistentStorageException |
Sends a text message to the group
text | Message |
---|
RcsPermissionDeniedException | |
RcsPersistentStorageException | |
RcsGenericException | |
RcsPermissionDeniedException | |
RcsPersistentStorageException |
This method should be called to notify the stack of if there is ongoing composing or not in this GroupChat. If there is an ongoing chat session established with the remote side corresponding to this GroupChat this means that a call to this method will send the 'is-composing' event or the 'is-not-composing' event to the remote side. However since this method can be called at any time even when there is no chat session established with the remote side or when the stack is not even connected to the IMS server then the stack implementation needs to hold the last given information (i.e. composing or not composing) in memory and then send it later when there is an established session available to relay this information on. Note: if this GroupChat corresponds to an incoming pending chat session and the parameter IM SESSION START is 1 then the session is accepted before sending the 'is-composing' event.
ongoing | True is client application is composing |
---|
RcsGenericException |
---|