Record Class TelegramMediaProperties
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.core.configuration.TelegramMediaProperties
- Record Components:
photoMaxDimensionSum- maximum allowed sum of photo dimensions.groupMaxSize- maximum allowed size of media groups.
-
Constructor Summary
ConstructorsConstructorDescriptionTelegramMediaProperties(@NotNull Integer photoMaxDimensionSum, @NotNull Integer groupMaxSize) Creates an instance of aTelegramMediaPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull IntegerReturns the value of thegroupMaxSizerecord component.final inthashCode()Returns a hash code value for this object.@NotNull IntegerReturns the value of thephotoMaxDimensionSumrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TelegramMediaProperties
public TelegramMediaProperties(@NotNull @NotNull Integer photoMaxDimensionSum, @NotNull @NotNull Integer groupMaxSize) Creates an instance of aTelegramMediaPropertiesrecord class.- Parameters:
photoMaxDimensionSum- the value for thephotoMaxDimensionSumrecord componentgroupMaxSize- the value for thegroupMaxSizerecord 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). -
photoMaxDimensionSum
Returns the value of thephotoMaxDimensionSumrecord component.- Returns:
- the value of the
photoMaxDimensionSumrecord component
-
groupMaxSize
Returns the value of thegroupMaxSizerecord component.- Returns:
- the value of the
groupMaxSizerecord component
-