Module tdlight.api

Class TdApi.DiscardCall

Enclosing class:
TdApi

public static final class TdApi.DiscardCall extends TdApi.Function<TdApi.Ok>
Discards a call.

Returns Ok

  • Field Details

    • callId

      public int callId
      Call identifier.
    • isDisconnected

      public boolean isDisconnected
      Pass true if the user was disconnected.
    • duration

      public int duration
      The call duration, in seconds.
    • isVideo

      public boolean isVideo
      Pass true if the call was a video call.
    • connectionId

      public long connectionId
      Identifier of the connection used during the call.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • 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 - Call identifier.
      isDisconnected - Pass true if the user was disconnected.
      duration - The call duration, in seconds.
      isVideo - Pass true if the call was a video call.
      connectionId - Identifier of the connection used during the call.

      Returns Ok

    • DiscardCall

      public DiscardCall(DataInput input) throws IOException
      Discards a call.

      Returns Ok

      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object