Package io.getstream.chat.android.models
Class DraftsSort
-
- All Implemented Interfaces:
-
io.getstream.chat.android.models.querysort.ComparableFieldProvider
@Immutable() public final class DraftsSort implements ComparableFieldProvider
Sorter for draft messages which takes into consideration the Date when the message was created.
-
-
Constructor Summary
Constructors Constructor Description DraftsSort(Date createdAt)
-
Method Summary
Modifier and Type Method Description final DategetCreatedAt()Comparable<?>getComparableField(String fieldName)Gets a comparable fields from a name. -
-
Constructor Detail
-
DraftsSort
DraftsSort(Date createdAt)
- Parameters:
createdAt- The date when the message was created.
-
-
Method Detail
-
getCreatedAt
final Date getCreatedAt()
-
getComparableField
Comparable<?> getComparableField(String fieldName)
Gets a comparable fields from a name.
- Parameters:
fieldName- The name of the field.
-
-
-
-