- Enclosing class:
- TdApi
Toggles whether a session can accept incoming calls.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Pass true to allow accepting incoming calls by the session; pass false otherwise.static final int
long
Session identifier. -
Constructor Summary
ConstructorDescriptionToggles whether a session can accept incoming calls.ToggleSessionCanAcceptCalls
(long sessionId, boolean canAcceptCalls) Toggles whether a session can accept incoming calls.Toggles whether a session can accept incoming calls. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
sessionId
public long sessionIdSession identifier. -
canAcceptCalls
public boolean canAcceptCallsPass true to allow accepting incoming calls by the session; pass false otherwise. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ToggleSessionCanAcceptCalls
public ToggleSessionCanAcceptCalls()Toggles whether a session can accept incoming calls. ReturnsOk
-
ToggleSessionCanAcceptCalls
public ToggleSessionCanAcceptCalls(long sessionId, boolean canAcceptCalls) Toggles whether a session can accept incoming calls. ReturnsOk
- Parameters:
sessionId
- long Session identifier.canAcceptCalls
- boolean Pass true to allow accepting incoming calls by the session; pass false otherwise.
-
ToggleSessionCanAcceptCalls
Toggles whether a session can accept incoming calls. ReturnsOk
- 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()
-