Class ChatRating
- java.lang.Object
-
- com.zopim.android.sdk.model.items.RowItem<ChatRating>
-
- com.zopim.android.sdk.model.items.ChatRating
-
- All Implemented Interfaces:
- Disableable, Updatable<ChatRating>, java.lang.Comparable<RowItem>
public class ChatRating extends RowItem<ChatRating> implements Disableable
This is a model class for chat rating that will be created byLivechatChatLogPath
.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)
usingChatItemsObserver
- See Also:
- Agent Dashboard
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.zopim.android.sdk.model.items.RowItem
RowItem.Type
-
-
Constructor Summary
Constructors Constructor and Description ChatRating()
-
Method Summary
All Methods Instance Methods Concrete Methods 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 parametervoid
setRating(ChatLog.Rating rating)
java.lang.String
toString()
void
update(ChatRating item)
Updates this item with item passed as parameter.-
Methods inherited from class com.zopim.android.sdk.model.items.RowItem
canBeCastTo, compareTo, getDisplayName, getId, getParticipantId, getTimestamp, getType, setDisplayName, setId, setParticipantId, setTimestamp, setType
-
-
-
-
Method Detail
-
update
public void update(ChatRating item)
Description copied from class:RowItem
Updates this item with item passed as parameter.This will update this instance with the parameter passed as value.
- Specified by:
update
in interfaceUpdatable<ChatRating>
- Overrides:
update
in classRowItem<ChatRating>
- Parameters:
item
- that is an update
-
getRating
public ChatLog.Rating getRating()
-
setRating
public void setRating(ChatLog.Rating rating)
-
getComment
public java.lang.String getComment()
-
setComment
public void setComment(java.lang.String comment)
-
isDisabled
public boolean isDisabled()
-
setDisabled
public void setDisabled(boolean disabled)
Description copied from interface:Disableable
Sets state as per parameter- Specified by:
setDisabled
in interfaceDisableable
- Parameters:
disabled
- true to disable, false to enable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classRowItem<ChatRating>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRowItem<ChatRating>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classRowItem<ChatRating>
-
-