Package dev.tobee.telegram.client
Record Class TbdAsyncClient
java.lang.Object
java.lang.Record
dev.tobee.telegram.client.TbdAsyncClient
-
Constructor Summary
ConstructorsConstructorDescriptionTbdAsyncClient(boolean isDebugEnabled, String host, String token)Creates an instance of aTbdAsyncClientrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.<T> CompletableFuture<T>getRequest(Request<T> request)inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.booleanReturns the value of theisDebugEnabledrecord component.<T> CompletableFuture<T>postRequest(Request<T> request)token()Returns the value of thetokenrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
TbdAsyncClient
Creates an instance of aTbdAsyncClientrecord class.- Parameters:
isDebugEnabled- the value for theisDebugEnabledrecord componenthost- the value for thehostrecord componenttoken- the value for thetokenrecord component
-
-
Method Details
-
getRequest
-
postRequest
-
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 '=='. -
isDebugEnabled
public boolean isDebugEnabled()Returns the value of theisDebugEnabledrecord component.- Returns:
- the value of the
isDebugEnabledrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-