Class SlackUser

java.lang.Object
edu.ucsb.cs156.frontiers.models.SlackUser

public class SlackUser extends Object
A member of a Slack workspace, as returned by the Slack users.list method.
See Also:
  • Field Details

    • SLACKBOT_ID

      public static final String 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

      public String email()
      Returns:
      the user's email, or null if Slack did not provide one
    • displayName

      public String displayName()
      Returns:
      the user's display name, or null if Slack did not provide one
    • firstName

      public String firstName()
      Returns:
      the user's first name, or null if Slack did not provide one
    • lastName

      public String 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