Module tdlight.api

Class TdApi.ToggleSessionCanAcceptCalls

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.Ok>
it.tdlight.jni.TdApi.ToggleSessionCanAcceptCalls
Enclosing class:
TdApi

public static final class TdApi.ToggleSessionCanAcceptCalls extends TdApi.Function<TdApi.Ok>
Toggles whether a session can accept incoming calls. Returns Ok
  • Field Details

    • sessionId

      public long sessionId
      Session identifier.
    • canAcceptCalls

      public boolean canAcceptCalls
      Pass 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. Returns Ok
    • ToggleSessionCanAcceptCalls

      public ToggleSessionCanAcceptCalls(long sessionId, boolean canAcceptCalls)
      Toggles whether a session can accept incoming calls. Returns Ok
      Parameters:
      sessionId - long Session identifier.
      canAcceptCalls - boolean Pass true to allow accepting incoming calls by the session; pass false otherwise.
    • ToggleSessionCanAcceptCalls

      public ToggleSessionCanAcceptCalls(DataInput input) throws IOException
      Toggles whether a session can accept incoming calls. Returns Ok
      Throws:
      IOException
  • Method Details