Record Class ChatShared
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChatShared
- All Implemented Interfaces:
Serializable, ApiResult
-
Constructor Summary
ConstructorsConstructorDescriptionChatShared(int requestId, @NotNull String chatId, @Nullable String title, @Nullable String username, @Nullable PhotoSize[] photo) Creates an instance of aChatSharedrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringchatId()Returns the value of thechatIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable PhotoSize[]photo()Returns the value of thephotorecord component.intReturns the value of therequestIdrecord component.@Nullable Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
ChatShared
public ChatShared(int requestId, @NotNull @NotNull String chatId, @Nullable @Nullable String title, @Nullable @Nullable String username, @Nullable @Nullable PhotoSize[] photo) Creates an instance of aChatSharedrecord class.- Parameters:
requestId- the value for therequestIdrecord componentchatId- the value for thechatIdrecord componenttitle- the value for thetitlerecord componentusername- the value for theusernamerecord componentphoto- the value for thephotorecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
requestId
public int requestId()Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
chatId
Returns the value of thechatIdrecord component.- Returns:
- the value of the
chatIdrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
photo
Returns the value of thephotorecord component.- Returns:
- the value of the
photorecord component
-