Class SlackUser
java.lang.Object
edu.ucsb.cs156.frontiers.models.SlackUser
A member of a Slack workspace, as returned by the Slack
users.list method.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSlack's built in Slackbot user is not flagged as a bot, but is not a person either. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SLACKBOT_ID
Slack's built in Slackbot user is not flagged as a bot, but is not a person either.- See Also:
-
-
Constructor Details
-
SlackUser
public SlackUser()
-
-
Method Details
-
email
- Returns:
- the user's email, or null if Slack did not provide one
-
displayName
- Returns:
- the user's display name, or null if Slack did not provide one
-
firstName
- Returns:
- the user's first name, or null if Slack did not provide one
-
lastName
- Returns:
- the user's last name, or null if Slack did not provide one
-
isPerson
public boolean isPerson()- Returns:
- true if this is a person (not a bot, and not Slackbot)
-
isActivePerson
public boolean isActivePerson()- Returns:
- true if this is a person with an account that is neither deactivated nor still waiting for an invitation to be accepted
-