Record Class AIConversationRequest.Message
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.pg.request.AIConversationRequest.Message
- Enclosing class:
AIConversationRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.html()Returns the value of thehtmlrecord component.role()Returns the value of therolerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
Message
Creates an instance of aMessagerecord class.- Parameters:
user- the value for theuserrecord componenthtml- the value for thehtmlrecord componentrole- the value for therolerecord componenttimestamp- the value for thetimestamprecord componentuserId- the value for theuserIdrecord component
-
-
Method Details
-
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. -
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. -
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). -
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
html
Returns the value of thehtmlrecord component.- Returns:
- the value of the
htmlrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-