Record Class WebhookInfo
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.WebhookInfo
- All Implemented Interfaces:
Serializable,ApiResult
public record WebhookInfo(String url, boolean hasCustomCertificate, int pendingUpdateCount, String ipAddress, int lastErrorDate, @Nullable String lastErrorMessage, int lastSynchronizationErrorDate, int maxConnections, @Nullable String[] allowedUpdates)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWebhookInfo(String url, boolean hasCustomCertificate, int pendingUpdateCount, String ipAddress, int lastErrorDate, @Nullable String lastErrorMessage, int lastSynchronizationErrorDate, int maxConnections, @Nullable String[] allowedUpdates) Creates an instance of aWebhookInforecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String[]Returns the value of theallowedUpdatesrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasCustomCertificaterecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theipAddressrecord component.intReturns the value of thelastErrorDaterecord component.@Nullable StringReturns the value of thelastErrorMessagerecord component.intReturns the value of thelastSynchronizationErrorDaterecord component.intReturns the value of themaxConnectionsrecord component.intReturns the value of thependingUpdateCountrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
WebhookInfo
public WebhookInfo(String url, boolean hasCustomCertificate, int pendingUpdateCount, String ipAddress, int lastErrorDate, @Nullable @Nullable String lastErrorMessage, int lastSynchronizationErrorDate, int maxConnections, @Nullable @Nullable String[] allowedUpdates) Creates an instance of aWebhookInforecord class.- Parameters:
url- the value for theurlrecord componenthasCustomCertificate- the value for thehasCustomCertificaterecord componentpendingUpdateCount- the value for thependingUpdateCountrecord componentipAddress- the value for theipAddressrecord componentlastErrorDate- the value for thelastErrorDaterecord componentlastErrorMessage- the value for thelastErrorMessagerecord componentlastSynchronizationErrorDate- the value for thelastSynchronizationErrorDaterecord componentmaxConnections- the value for themaxConnectionsrecord componentallowedUpdates- the value for theallowedUpdatesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
hasCustomCertificate
public boolean hasCustomCertificate()Returns the value of thehasCustomCertificaterecord component.- Returns:
- the value of the
hasCustomCertificaterecord component
-
pendingUpdateCount
public int pendingUpdateCount()Returns the value of thependingUpdateCountrecord component.- Returns:
- the value of the
pendingUpdateCountrecord component
-
ipAddress
Returns the value of theipAddressrecord component.- Returns:
- the value of the
ipAddressrecord component
-
lastErrorDate
public int lastErrorDate()Returns the value of thelastErrorDaterecord component.- Returns:
- the value of the
lastErrorDaterecord component
-
lastErrorMessage
Returns the value of thelastErrorMessagerecord component.- Returns:
- the value of the
lastErrorMessagerecord component
-
lastSynchronizationErrorDate
public int lastSynchronizationErrorDate()Returns the value of thelastSynchronizationErrorDaterecord component.- Returns:
- the value of the
lastSynchronizationErrorDaterecord component
-
maxConnections
public int maxConnections()Returns the value of themaxConnectionsrecord component.- Returns:
- the value of the
maxConnectionsrecord component
-
allowedUpdates
Returns the value of theallowedUpdatesrecord component.- Returns:
- the value of the
allowedUpdatesrecord component
-