Record Class NeedRecChatMessage
java.lang.Object
java.lang.Record
io.github.seenings.chat.model.NeedRecChatMessage
- Record Components:
sendTime- 发送时间,指服务器接受到消息的时间
public record NeedRecChatMessage(Long userIdOfSender, Integer contentTypeId, Integer contentId, LocalDateTime sendTime)
extends Record
需要接收的消息
-
Constructor Summary
ConstructorsConstructorDescriptionNeedRecChatMessage(Long userIdOfSender, Integer contentTypeId, Integer contentId, LocalDateTime sendTime) Creates an instance of aNeedRecChatMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentIdrecord component.Returns the value of thecontentTypeIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sendTime()Returns the value of thesendTimerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserIdOfSenderrecord component.
-
Constructor Details
-
NeedRecChatMessage
public NeedRecChatMessage(Long userIdOfSender, Integer contentTypeId, Integer contentId, LocalDateTime sendTime) Creates an instance of aNeedRecChatMessagerecord class.- Parameters:
userIdOfSender- the value for theuserIdOfSenderrecord componentcontentTypeId- the value for thecontentTypeIdrecord componentcontentId- the value for thecontentIdrecord componentsendTime- the value for thesendTimerecord 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). -
userIdOfSender
Returns the value of theuserIdOfSenderrecord component.- Returns:
- the value of the
userIdOfSenderrecord component
-
contentTypeId
Returns the value of thecontentTypeIdrecord component.- Returns:
- the value of the
contentTypeIdrecord component
-
contentId
Returns the value of thecontentIdrecord component.- Returns:
- the value of the
contentIdrecord component
-
sendTime
-