-
- 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 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)final StringgetId()the user id, this field is the only required field final StringgetRole()final BooleangetInvisible()final BooleangetBanned()final List<Device>getDevices()final BooleangetOnline()final DategetCreatedAt()final DategetUpdatedAt()final DategetLastActive()final IntegergetTotalUnreadCount()final IntegergetUnreadChannels()final IntegergetUnreadCount()final List<Mute>getMutes()final List<String>getTeams()final List<ChannelMute>getChannelMutes()Map<String, Object>getExtraData()final UnitsetId(String id)the user id, this field is the only required field final UnitsetRole(String role)final UnitsetInvisible(Boolean invisible)final UnitsetBanned(Boolean banned)final UnitsetDevices(List<Device> devices)final UnitsetOnline(Boolean online)final UnitsetCreatedAt(@SerializedName(value = "created_at") Date createdAt)final UnitsetUpdatedAt(@SerializedName(value = "updated_at") Date updatedAt)final UnitsetLastActive(@SerializedName(value = "last_active") Date lastActive)final UnitsetTotalUnreadCount(@SerializedName(value = "total_unread_count") Integer totalUnreadCount)final UnitsetUnreadChannels(@SerializedName(value = "unread_channels") Integer unreadChannels)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 UnitsetMutes(@SerializedName(value = "mutes") List<Mute> mutes)UnitsetExtraData(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
-
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)
-
getInvisible
final Boolean getInvisible()
-
getDevices
final List<Device> getDevices()
-
getCreatedAt
final Date getCreatedAt()
-
getUpdatedAt
final Date getUpdatedAt()
-
getLastActive
final Date getLastActive()
-
getTotalUnreadCount
final Integer getTotalUnreadCount()
-
getUnreadChannels
final Integer getUnreadChannels()
-
getUnreadCount
final Integer getUnreadCount()
-
getChannelMutes
final List<ChannelMute> getChannelMutes()
-
getExtraData
Map<String, Object> getExtraData()
-
setInvisible
final Unit setInvisible(Boolean invisible)
-
setDevices
final Unit setDevices(List<Device> devices)
-
setCreatedAt
final Unit setCreatedAt(@SerializedName(value = "created_at") Date createdAt)
-
setUpdatedAt
final Unit setUpdatedAt(@SerializedName(value = "updated_at") Date updatedAt)
-
setLastActive
final Unit setLastActive(@SerializedName(value = "last_active") Date lastActive)
-
setTotalUnreadCount
final Unit setTotalUnreadCount(@SerializedName(value = "total_unread_count") Integer totalUnreadCount)
-
setUnreadChannels
final Unit setUnreadChannels(@SerializedName(value = "unread_channels") Integer unreadChannels)
-
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)
-
setExtraData
Unit setExtraData(Map<String, Object> extraData)
-
-
-
-