Package it.tdlight.jni
Class TdApi.DiscardCall
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.DiscardCall
- Enclosing class:
- TdApi
public static class TdApi.DiscardCall extends TdApi.Function
Discards a call.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description int
callId
Call identifier.long
connectionId
Identifier of the connection used during the call.static int
CONSTRUCTOR
int
duration
The call duration, in seconds.boolean
isDisconnected
True, if the user was disconnected.boolean
isVideo
True, if the call was a video call. -
Constructor Summary
Constructors Constructor Description DiscardCall()
Discards a call.DiscardCall(int callId, boolean isDisconnected, int duration, boolean isVideo, long connectionId)
Discards a call.DiscardCall(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods 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 isDisconnectedTrue, if the user was disconnected. -
duration
public int durationThe call duration, in seconds. -
isVideo
public boolean isVideoTrue, if the call was a video call. -
connectionId
public long connectionIdIdentifier of the connection used during the call. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
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
- int Call identifier.isDisconnected
- boolean True, if the user was disconnected.duration
- int The call duration, in seconds.isVideo
- boolean True, if the call was a video call.connectionId
- long Identifier of the connection used during the call.
-
DiscardCall
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-