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
ChatRatingin 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 booleanequals(java.lang.Object o)java.lang.StringgetComment()ChatLog.RatinggetRating()inthashCode()booleanisDisabled()voidsetComment(java.lang.String comment)voidsetDisabled(boolean disabled)Sets state as per parametervoidsetRating(ChatLog.Rating rating)java.lang.StringtoString()voidupdate(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:RowItemUpdates this item with item passed as parameter.This will update this instance with the parameter passed as value.
- Specified by:
updatein interfaceUpdatable<ChatRating>- Overrides:
updatein 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:DisableableSets state as per parameter- Specified by:
setDisabledin interfaceDisableable- Parameters:
disabled- true to disable, false to enable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classRowItem<ChatRating>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classRowItem<ChatRating>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classRowItem<ChatRating>
-
-