public abstract class RowItem<T extends RowItem> extends java.lang.Object implements java.lang.Comparable<RowItem>, Updatable<T>
LivechatChatLogPath
.
It provides the following updates:
You can subscribe to chat item broadcast via
com.zopim.android.sdk.data.DataSource#addChatLogObserver(java.util.Observer)
using ChatItemsObserver
Modifier and Type | Class and Description |
---|---|
static class |
RowItem.Type
Available types that this row item can represent.
|
Modifier | Constructor and Description |
---|---|
protected |
RowItem() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RowItem rowItem)
Compares two
RowItem items by their time values |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDisplayName() |
java.lang.String |
getId() |
java.lang.String |
getParticipantId() |
java.lang.Long |
getTimestamp() |
RowItem.Type |
getType() |
int |
hashCode() |
void |
setDisplayName(java.lang.String displayName) |
void |
setId(java.lang.String id) |
void |
setParticipantId(java.lang.String participantId) |
void |
setTimestamp(java.lang.Long timestamp) |
protected void |
setType(RowItem.Type type) |
java.lang.String |
toString() |
void |
update(T item)
Updates this item with item passed as parameter.
|
public void update(@NonNull T item)
This will update this instance with the parameter passed as value.
@NonNull public java.lang.String getId()
public void setId(@NonNull java.lang.String id)
@NonNull public RowItem.Type getType()
protected void setType(@NonNull RowItem.Type type)
@NonNull public java.lang.String getDisplayName()
public void setDisplayName(@NonNull java.lang.String displayName)
@NonNull public java.lang.String getParticipantId()
public void setParticipantId(@NonNull java.lang.String participantId)
@NonNull public java.lang.Long getTimestamp()
public void setTimestamp(@NonNull java.lang.Long timestamp)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(@NonNull RowItem rowItem) throws java.lang.NullPointerException
RowItem
items by their time valuescompareTo
in interface java.lang.Comparable<RowItem>
rowItem
- to compare tojava.lang.NullPointerException
- if comparison was not possiblepublic java.lang.String toString()
toString
in class java.lang.Object