public class ChatRating extends RowItem<ChatRating> implements Disableable
LivechatChatLogPath
.
It is used to get updates of ChatRating
in the chat item list UI. Agent can request a rating of the current chat in the dashboard.
You can subscribe to chat item broadcast via com.zopim.android.sdk.data.DataSource#addChatLogObserver(java.util.Observer)
using ChatItemsObserver
RowItem.Type
Constructor and Description |
---|
ChatRating() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getComment() |
ChatLog.Rating |
getRating() |
int |
hashCode() |
boolean |
isDisabled() |
void |
setComment(java.lang.String comment) |
void |
setDisabled(boolean disabled)
Sets state as per parameter
|
void |
setRating(ChatLog.Rating rating) |
java.lang.String |
toString() |
void |
update(ChatRating item)
Updates this item with item passed as parameter.
|
compareTo, getDisplayName, getId, getParticipantId, getTimestamp, getType, setDisplayName, setId, setParticipantId, setTimestamp, setType
public void update(@NonNull ChatRating item)
RowItem
This will update this instance with the parameter passed as value.
update
in interface Updatable<ChatRating>
update
in class RowItem<ChatRating>
item
- that is an update@NonNull public ChatLog.Rating getRating()
public void setRating(@NonNull ChatLog.Rating rating)
@NonNull public java.lang.String getComment()
public void setComment(@NonNull java.lang.String comment)
public boolean isDisabled()
public void setDisabled(boolean disabled)
Disableable
setDisabled
in interface Disableable
disabled
- true to disable, false to enablepublic boolean equals(java.lang.Object o)
equals
in class RowItem<ChatRating>
public int hashCode()
hashCode
in class RowItem<ChatRating>
public java.lang.String toString()
toString
in class RowItem<ChatRating>