-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.models.CustomObject
public final class User implements CustomObject
The only required field on the User data class is the user id.
You can also store custom data as you'd like.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringidprivate Stringroleprivate Booleaninvisibleprivate Booleanbannedprivate List<Device>devicesprivate Booleanonlineprivate DatecreatedAtprivate DateupdatedAtprivate DatelastActiveprivate IntegertotalUnreadCountprivate IntegerunreadChannelsprivate List<Mute>mutesprivate final List<String>teamsprivate final List<ChannelMute>channelMutesprivate Map<String, Object>extraData
-
Constructor Summary
Constructors Constructor Description User(String id, String role, Boolean invisible, Boolean banned, List<Device> devices, Boolean online, Date createdAt, Date updatedAt, Date lastActive, Integer totalUnreadCount, Integer unreadChannels, List<Mute> mutes, List<String> teams, List<ChannelMute> channelMutes, Map<String, Object> extraData)
-
Method Summary
Modifier and Type Method Description final StringgetId()the user id, this field is the only required field final UnitsetId(String id)the user id, this field is the only required field final StringgetRole()final UnitsetRole(String role)final BooleangetInvisible()final UnitsetInvisible(Boolean invisible)final BooleangetBanned()final UnitsetBanned(Boolean banned)final List<Device>getDevices()final UnitsetDevices(List<Device> devices)final BooleangetOnline()final UnitsetOnline(Boolean online)final DategetCreatedAt()final UnitsetCreatedAt(@SerializedName(value = created_at) Date createdAt)final DategetUpdatedAt()final UnitsetUpdatedAt(@SerializedName(value = updated_at) Date updatedAt)final DategetLastActive()final UnitsetLastActive(@SerializedName(value = last_active) Date lastActive)final IntegergetTotalUnreadCount()final UnitsetTotalUnreadCount(@SerializedName(value = total_unread_count) Integer totalUnreadCount)final IntegergetUnreadChannels()final UnitsetUnreadChannels(@SerializedName(value = unread_channels) Integer unreadChannels)final List<Mute>getMutes()final UnitsetMutes(@SerializedName(value = mutes) List<Mute> mutes)final List<String>getTeams()final List<ChannelMute>getChannelMutes()Map<String, Object>getExtraData()UnitsetExtraData(Map<String, Object> extraData)-
-
Constructor Detail
-
User
User(String id, String role, Boolean invisible, Boolean banned, List<Device> devices, Boolean online, Date createdAt, Date updatedAt, Date lastActive, Integer totalUnreadCount, Integer unreadChannels, List<Mute> mutes, List<String> teams, List<ChannelMute> channelMutes, Map<String, Object> extraData)
-
-
Method Detail
-
getInvisible
final Boolean getInvisible()
-
setInvisible
final Unit setInvisible(Boolean invisible)
-
getDevices
final List<Device> getDevices()
-
setDevices
final Unit setDevices(List<Device> devices)
-
getCreatedAt
final Date getCreatedAt()
-
setCreatedAt
final Unit setCreatedAt(@SerializedName(value = created_at) Date createdAt)
-
getUpdatedAt
final Date getUpdatedAt()
-
setUpdatedAt
final Unit setUpdatedAt(@SerializedName(value = updated_at) Date updatedAt)
-
getLastActive
final Date getLastActive()
-
setLastActive
final Unit setLastActive(@SerializedName(value = last_active) Date lastActive)
-
getTotalUnreadCount
final Integer getTotalUnreadCount()
-
setTotalUnreadCount
final Unit setTotalUnreadCount(@SerializedName(value = total_unread_count) Integer totalUnreadCount)
-
getUnreadChannels
final Integer getUnreadChannels()
-
setUnreadChannels
final Unit setUnreadChannels(@SerializedName(value = unread_channels) Integer unreadChannels)
-
getChannelMutes
final List<ChannelMute> getChannelMutes()
-
getExtraData
Map<String, Object> getExtraData()
-
setExtraData
Unit setExtraData(Map<String, Object> extraData)
-
-
-
-