-
- 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 IntegerunreadCountprivate 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, Integer unreadCount, 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 IntegergetUnreadCount()final UnitsetUnreadCount(@Deprecated(message = This property is deprecated, it value could be wrong and will be removed in a future version, replaceWith = @ReplaceWith(imports = {}, expression = this.totalUnreadCount)) @SerializedName(value = unread_count) Integer unreadCount)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)final Stringcomponent1()final Stringcomponent2()final Booleancomponent3()final Booleancomponent4()final List<Device>component5()final Booleancomponent6()final Datecomponent7()final Datecomponent8()final Datecomponent9()final Integercomponent10()final Integercomponent11()final Integercomponent12()final List<Mute>component13()final List<String>component14()final List<ChannelMute>component15()final Map<String, Object>component16()final Usercopy(String id, String role, Boolean invisible, Boolean banned, List<Device> devices, Boolean online, Date createdAt, Date updatedAt, Date lastActive, Integer totalUnreadCount, Integer unreadChannels, Integer unreadCount, List<Mute> mutes, List<String> teams, List<ChannelMute> channelMutes, Map<String, Object> extraData)-
Methods inherited from class io.getstream.chat.android.client.models.User
getExtraValue, putExtraValue -
Methods inherited from class io.getstream.chat.android.client.models.CustomObject
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
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, Integer unreadCount, 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)
-
getUnreadCount
final Integer getUnreadCount()
-
setUnreadCount
final Unit setUnreadCount(@Deprecated(message = This property is deprecated, it value could be wrong and will be removed in a future version, replaceWith = @ReplaceWith(imports = {}, expression = this.totalUnreadCount)) @SerializedName(value = unread_count) Integer unreadCount)
-
getChannelMutes
final List<ChannelMute> getChannelMutes()
-
getExtraData
Map<String, Object> getExtraData()
-
setExtraData
Unit setExtraData(Map<String, Object> extraData)
-
component1
final String component1()
-
component2
final String component2()
-
component3
final Boolean component3()
-
component4
final Boolean component4()
-
component5
final List<Device> component5()
-
component6
final Boolean component6()
-
component7
final Date component7()
-
component8
final Date component8()
-
component9
final Date component9()
-
component10
final Integer component10()
-
component11
final Integer component11()
-
component12
final Integer component12()
-
component13
final List<Mute> component13()
-
component14
final List<String> component14()
-
component15
final List<ChannelMute> component15()
-
component16
final Map<String, Object> component16()
-
copy
final User copy(String id, String role, Boolean invisible, Boolean banned, List<Device> devices, Boolean online, Date createdAt, Date updatedAt, Date lastActive, Integer totalUnreadCount, Integer unreadChannels, Integer unreadCount, List<Mute> mutes, List<String> teams, List<ChannelMute> channelMutes, Map<String, Object> extraData)
-
-
-
-