public static class TdApi.ToggleSessionCanAcceptCalls extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
boolean |
canAcceptCalls
Pass true to allow accepting incoming calls by the session; pass false otherwise.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
sessionId
Session identifier.
|
| Constructor and Description |
|---|
ToggleSessionCanAcceptCalls()
Default constructor for a function, which toggles whether a session can accept incoming calls.
|
ToggleSessionCanAcceptCalls(long sessionId,
boolean canAcceptCalls)
Creates a function, which toggles whether a session can accept incoming calls.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long sessionId
public boolean canAcceptCalls
public static final int CONSTRUCTOR
public ToggleSessionCanAcceptCalls()
Returns Ok
public ToggleSessionCanAcceptCalls(long sessionId,
boolean canAcceptCalls)
Returns Ok
sessionId - Session identifier.canAcceptCalls - Pass true to allow accepting incoming calls by the session; pass false otherwise.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object