Record Class SlackController.SlackUserView
java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.controllers.SlackController.SlackUserView
- Enclosing class:
SlackController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecourseRolerecord component.Returns the value of thedisplayNamerecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.realName()Returns the value of therealNamerecord component.Returns the value of theslackUserIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SlackUserView
public SlackUserView(String slackUserId, String name, String realName, String displayName, String email, String courseRole) Creates an instance of aSlackUserViewrecord class.- Parameters:
slackUserId- the value for theslackUserIdrecord componentname- the value for thenamerecord componentrealName- the value for therealNamerecord componentdisplayName- the value for thedisplayNamerecord componentemail- the value for theemailrecord componentcourseRole- the value for thecourseRolerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
slackUserId
Returns the value of theslackUserIdrecord component.- Returns:
- the value of the
slackUserIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
realName
Returns the value of therealNamerecord component.- Returns:
- the value of the
realNamerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
courseRole
Returns the value of thecourseRolerecord component.- Returns:
- the value of the
courseRolerecord component
-