Record Class SlackController.SlackUserView

java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.controllers.SlackController.SlackUserView
Enclosing class:
SlackController

public static record SlackController.SlackUserView(String slackUserId, String name, String realName, String displayName, String email, String courseRole) extends Record
A person with an active account in the Slack workspace, and their role in the course.
  • Constructor Details

    • SlackUserView

      public SlackUserView(String slackUserId, String name, String realName, String displayName, String email, String courseRole)
      Creates an instance of a SlackUserView record class.
      Parameters:
      slackUserId - the value for the slackUserId record component
      name - the value for the name record component
      realName - the value for the realName record component
      displayName - the value for the displayName record component
      email - the value for the email record component
      courseRole - the value for the courseRole record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • slackUserId

      public String slackUserId()
      Returns the value of the slackUserId record component.
      Returns:
      the value of the slackUserId record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • realName

      public String realName()
      Returns the value of the realName record component.
      Returns:
      the value of the realName record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • email

      public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • courseRole

      public String courseRole()
      Returns the value of the courseRole record component.
      Returns:
      the value of the courseRole record component