- Enclosing class:
- TdApi
Discards a call.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionint
Call identifier.long
Identifier of the connection used during the call.static final int
Identifier uniquely determining type of the object.int
The call duration, in seconds.boolean
Pass true if the user was disconnected.boolean
Pass true if the call was a video call. -
Constructor Summary
ConstructorDescriptionDiscards a call.DiscardCall
(int callId, boolean isDisconnected, int duration, boolean isVideo, long connectionId) Discards a call.DiscardCall
(DataInput input) Discards a call. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
callId
public int callIdCall identifier. -
isDisconnected
public boolean isDisconnectedPass true if the user was disconnected. -
duration
public int durationThe call duration, in seconds. -
isVideo
public boolean isVideoPass true if the call was a video call. -
connectionId
public long connectionIdIdentifier of the connection used during the call. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
DiscardCall
public DiscardCall()Discards a call.Returns
Ok
-
DiscardCall
public DiscardCall(int callId, boolean isDisconnected, int duration, boolean isVideo, long connectionId) Discards a call.Returns
Ok
- Parameters:
callId
- Call identifier.isDisconnected
- Pass true if the user was disconnected.duration
- The call duration, in seconds.isVideo
- Pass true if the call was a video call.connectionId
- Identifier of the connection used during the call.Returns
Ok
-
DiscardCall
Discards a call.Returns
Ok
- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-