public static class TdApi.ToggleSessionCanAcceptCalls extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
boolean |
canAcceptCalls
True, if incoming calls can be accepted by the session.
|
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() |
toString
public 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
- True, if incoming calls can be accepted by the session.public int getConstructor()
getConstructor
in class TdApi.Function