Record Class InputPaidMediaLivePhoto
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputPaidMediaLivePhoto
- All Implemented Interfaces:
Serializable, ApiResult, InputPaidMedia
public record InputPaidMediaLivePhoto(@NotNull InputFile media, @NotNull InputFile photo)
extends Record
implements InputPaidMedia
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface InputPaidMedia
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputPaidMediaLivePhoto(@NotNull InputFile media, @NotNull InputFile photo) Creates an instance of aInputPaidMediaLivePhotorecord class. -
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.@NotNull InputFilemedia()Returns the value of themediarecord component.static @NotNull InputPaidMediaLivePhoto.Builder@NotNull InputFilephoto()Returns the value of thephotorecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InputPaidMediaLivePhoto
-
-
Method Details
-
ofBuilder
@NotNull public static @NotNull InputPaidMediaLivePhoto.Builder ofBuilder(InputFile media, InputFile photo) -
type
- Specified by:
typein interfaceInputPaidMedia
-
toBuilder
-
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). -
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
photo
Returns the value of thephotorecord component.- Returns:
- the value of the
photorecord component
-