public static class ChatConversationBase.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ChatConversationBase |
build() |
ChatConversationBase.Builder |
populate(ChatConversationBase conversation) |
ChatConversationBase.Builder |
setConversationId(java.lang.String conversationId) |
ChatConversationBase.Builder |
setETag(java.lang.String eTag)
Sets ETag for server to check if local version of the data is the same as the one the server side.
|
ChatConversationBase.Builder |
setFirstLocalEventId(java.lang.Long firstEventId)
Sets oldest conversation event id known by the app.
|
ChatConversationBase.Builder |
setLastLocalEventId(java.lang.Long lastEventId)
Sets latest conversation event id known by the app.
|
ChatConversationBase.Builder |
setLastRemoteEventId(java.lang.Long latestRemoteEventId)
Sets latest conversation event id.
|
ChatConversationBase.Builder |
setUpdatedOn(java.lang.Long updatedOn)
Sets date on which the conversation was updated for the last time.
|
public ChatConversationBase.Builder setConversationId(java.lang.String conversationId)
public ChatConversationBase.Builder setFirstLocalEventId(java.lang.Long firstEventId)
firstEventId - Oldest conversation event id known by the app.public ChatConversationBase.Builder setLastLocalEventId(java.lang.Long lastEventId)
lastEventId - Latest conversation event id known by the app.public ChatConversationBase.Builder setLastRemoteEventId(java.lang.Long latestRemoteEventId)
latestRemoteEventId - Latest conversation event id.public ChatConversationBase.Builder setETag(java.lang.String eTag)
eTag - ETag for server to check if local version of the data is the same as the one the server side.public ChatConversationBase.Builder setUpdatedOn(java.lang.Long updatedOn)
updatedOn - Date on which the conversation was updated for the last time.public ChatConversationBase.Builder populate(ChatConversationBase conversation)
public ChatConversationBase build()