Class TdApi.TestReturnError
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Error>
dev.voroby.springframework.telegram.client.TdApi.TestReturnError
- Enclosing class:
- TdApi
Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously.
Returns Error
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.The error to be returned. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which returns the specified error and ensures that the Error object is used; for testing only.TestReturnError
(TdApi.Error error) Creates a function, which returns the specified error and ensures that the Error object is used; for testing only. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
error
The error to be returned. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
TestReturnError
public TestReturnError()Default constructor for a function, which returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously.Returns
Error
-
TestReturnError
Creates a function, which returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously.Returns
Error
- Parameters:
error
- The error to be returned.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-