Record Class InputStoryContentPhoto
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputStoryContentPhoto
- All Implemented Interfaces:
Serializable, ApiResult, InputStoryContent
public record InputStoryContentPhoto(@NotNull InputFile photo)
extends Record
implements InputStoryContent
- See Also:
-
Field Summary
Fields inherited from interface InputStoryContent
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputStoryContentPhoto(@NotNull InputFile photo) Creates an instance of aInputStoryContentPhotorecord 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 InputFilephoto()Returns the value of thephotorecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InputStoryContentPhoto
Creates an instance of aInputStoryContentPhotorecord class.- Parameters:
photo- the value for thephotorecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceInputStoryContent
-
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). -
photo
Returns the value of thephotorecord component.- Returns:
- the value of the
photorecord component
-