-
- 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 Stringnameprivate Stringimageprivate 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
-
-
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(Date createdAt)
-
getUpdatedAt
final Date getUpdatedAt()
-
setUpdatedAt
final Unit setUpdatedAt(Date updatedAt)
-
getLastActive
final Date getLastActive()
-
setLastActive
final Unit setLastActive(Date lastActive)
-
getTotalUnreadCount
final Integer getTotalUnreadCount()
-
setTotalUnreadCount
final Unit setTotalUnreadCount(Integer totalUnreadCount)
-
getUnreadChannels
final Integer getUnreadChannels()
-
setUnreadChannels
final Unit setUnreadChannels(Integer unreadChannels)
-
getChannelMutes
final List<ChannelMute> getChannelMutes()
-
getExtraData
Map<String, Object> getExtraData()
-
setExtraData
Unit setExtraData(Map<String, Object> extraData)
-
-
-
-