Package com.slack.api.model
Class User
- java.lang.Object
-
- com.slack.api.model.User
-
public class User extends Object
- https://api.slack.com/types/user - https://api.slack.com/changelog/2017-09-the-one-about-usernames
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
User.EnterpriseUser
static class
User.Profile
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getColor()
User.EnterpriseUser
getEnterpriseUser()
String
getId()
String
getLocale()
String
getName()
String
getPresence()
User.Profile
getProfile()
String
getRealName()
String
getTeamId()
String
getTwoFactorType()
String
getTz()
String
getTzLabel()
Integer
getTzOffset()
Long
getUpdated()
int
hashCode()
boolean
isAdmin()
boolean
isAppUser()
boolean
isBot()
boolean
isDeleted()
boolean
isEmailConfirmed()
boolean
isHas2fa()
boolean
isHasFiles()
boolean
isInvitedUser()
boolean
isOwner()
boolean
isPrimaryOwner()
boolean
isRestricted()
is_restricted indicates the user is a multi-channel guest.boolean
isStranger()
boolean
isUltraRestricted()
is_ultra_restricted indicates they are a single channel guest.boolean
isWorkflowBot()
void
setAdmin(boolean admin)
void
setAppUser(boolean appUser)
void
setBot(boolean bot)
void
setColor(String color)
void
setDeleted(boolean deleted)
void
setEmailConfirmed(boolean emailConfirmed)
void
setEnterpriseUser(User.EnterpriseUser enterpriseUser)
void
setHas2fa(boolean has2fa)
void
setHasFiles(boolean hasFiles)
void
setId(String id)
void
setInvitedUser(boolean invitedUser)
void
setLocale(String locale)
void
setName(String name)
void
setOwner(boolean owner)
void
setPresence(String presence)
void
setPrimaryOwner(boolean primaryOwner)
void
setProfile(User.Profile profile)
void
setRealName(String realName)
void
setRestricted(boolean restricted)
is_restricted indicates the user is a multi-channel guest.void
setStranger(boolean stranger)
void
setTeamId(String teamId)
void
setTwoFactorType(String twoFactorType)
void
setTz(String tz)
void
setTzLabel(String tzLabel)
void
setTzOffset(Integer tzOffset)
void
setUltraRestricted(boolean ultraRestricted)
is_ultra_restricted indicates they are a single channel guest.void
setUpdated(Long updated)
void
setWorkflowBot(boolean workflowBot)
String
toString()
-
-
-
Method Detail
-
getId
public String getId()
-
getTeamId
public String getTeamId()
-
getName
public String getName()
-
isDeleted
public boolean isDeleted()
-
getColor
public String getColor()
-
getRealName
public String getRealName()
-
getTz
public String getTz()
-
getTzLabel
public String getTzLabel()
-
getTzOffset
public Integer getTzOffset()
-
getProfile
public User.Profile getProfile()
-
isAdmin
public boolean isAdmin()
-
isOwner
public boolean isOwner()
-
isPrimaryOwner
public boolean isPrimaryOwner()
-
isInvitedUser
public boolean isInvitedUser()
-
isRestricted
public boolean isRestricted()
is_restricted indicates the user is a multi-channel guest. see also: https://get.slack.help/hc/en-us/articles/201314026-roles-and-permissions-in-slack
-
isUltraRestricted
public boolean isUltraRestricted()
is_ultra_restricted indicates they are a single channel guest. see also: https://get.slack.help/hc/en-us/articles/201314026-roles-and-permissions-in-slack
-
isBot
public boolean isBot()
-
isStranger
public boolean isStranger()
-
isAppUser
public boolean isAppUser()
-
getUpdated
public Long getUpdated()
-
isHas2fa
public boolean isHas2fa()
-
isEmailConfirmed
public boolean isEmailConfirmed()
-
getPresence
public String getPresence()
-
getEnterpriseUser
public User.EnterpriseUser getEnterpriseUser()
-
getTwoFactorType
public String getTwoFactorType()
-
isHasFiles
public boolean isHasFiles()
-
getLocale
public String getLocale()
-
isWorkflowBot
public boolean isWorkflowBot()
-
setId
public void setId(String id)
-
setTeamId
public void setTeamId(String teamId)
-
setName
public void setName(String name)
-
setDeleted
public void setDeleted(boolean deleted)
-
setColor
public void setColor(String color)
-
setRealName
public void setRealName(String realName)
-
setTz
public void setTz(String tz)
-
setTzLabel
public void setTzLabel(String tzLabel)
-
setTzOffset
public void setTzOffset(Integer tzOffset)
-
setProfile
public void setProfile(User.Profile profile)
-
setAdmin
public void setAdmin(boolean admin)
-
setOwner
public void setOwner(boolean owner)
-
setPrimaryOwner
public void setPrimaryOwner(boolean primaryOwner)
-
setInvitedUser
public void setInvitedUser(boolean invitedUser)
-
setRestricted
public void setRestricted(boolean restricted)
is_restricted indicates the user is a multi-channel guest. see also: https://get.slack.help/hc/en-us/articles/201314026-roles-and-permissions-in-slack
-
setUltraRestricted
public void setUltraRestricted(boolean ultraRestricted)
is_ultra_restricted indicates they are a single channel guest. see also: https://get.slack.help/hc/en-us/articles/201314026-roles-and-permissions-in-slack
-
setBot
public void setBot(boolean bot)
-
setStranger
public void setStranger(boolean stranger)
-
setAppUser
public void setAppUser(boolean appUser)
-
setUpdated
public void setUpdated(Long updated)
-
setHas2fa
public void setHas2fa(boolean has2fa)
-
setEmailConfirmed
public void setEmailConfirmed(boolean emailConfirmed)
-
setPresence
public void setPresence(String presence)
-
setEnterpriseUser
public void setEnterpriseUser(User.EnterpriseUser enterpriseUser)
-
setTwoFactorType
public void setTwoFactorType(String twoFactorType)
-
setHasFiles
public void setHasFiles(boolean hasFiles)
-
setLocale
public void setLocale(String locale)
-
setWorkflowBot
public void setWorkflowBot(boolean workflowBot)
-
canEqual
protected boolean canEqual(Object other)
-
-