Module tdlight.api

Class TdApi.GroupCall

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.GroupCall
Enclosing class:
TdApi

public static final class TdApi.GroupCall extends TdApi.Object
Describes a group call.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    True, if the current user can manage the group call.
    boolean
    True, if the current user can broadcast video or share screen.
    boolean
    True, if the current user can enable or disable muteNewParticipants setting.
    static final int
    Identifier uniquely determining type of the object.
    int
    Call duration, in seconds; for ended calls only.
    boolean
    True, if the group call is scheduled and the current user will receive a notification when the group call will start.
    boolean
    True, if group call participants, which are muted, aren't returned in participant list.
    int
    Group call identifier.
    boolean
    True, if the call is active.
    boolean
    True, if the call is joined.
    boolean
    True, if the current user's video is enabled.
    boolean
    True, if the current user's video is paused.
    boolean
    True, if the chat is an RTMP stream instead of an ordinary video chat.
    boolean
    True, if a video file is being recorded for the call.
    boolean
    True, if all group call participants are loaded.
    boolean
    True, if only group call administrators can unmute new participants.
    boolean
    True, if user was kicked from the call because of network loss and the call needs to be rejoined.
    int
    Number of participants in the group call.
    At most 3 recently speaking users in the group call.
    int
    Duration of the ongoing group call recording, in seconds; 0 if none.
    int
    Point in time (Unix timestamp) when the group call is supposed to be started by an administrator; 0 if it is already active or was ended.
    Group call title.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Describes a group call.
    GroupCall(int id, String title, int scheduledStartDate, boolean enabledStartNotification, boolean isActive, boolean isRtmpStream, boolean isJoined, boolean needRejoin, boolean canBeManaged, int participantCount, boolean hasHiddenListeners, boolean loadedAllParticipants, TdApi.GroupCallRecentSpeaker[] recentSpeakers, boolean isMyVideoEnabled, boolean isMyVideoPaused, boolean canEnableVideo, boolean muteNewParticipants, boolean canToggleMuteNewParticipants, int recordDuration, boolean isVideoRecorded, int duration)
    Describes a group call.
    Describes a group call.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Returns an identifier uniquely determining type of the object.
    int
     
    void
    Serialize the TDLib class

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      public int id
      Group call identifier.
    • title

      public String title
      Group call title.
    • scheduledStartDate

      public int scheduledStartDate
      Point in time (Unix timestamp) when the group call is supposed to be started by an administrator; 0 if it is already active or was ended.
    • enabledStartNotification

      public boolean enabledStartNotification
      True, if the group call is scheduled and the current user will receive a notification when the group call will start.
    • isActive

      public boolean isActive
      True, if the call is active.
    • isRtmpStream

      public boolean isRtmpStream
      True, if the chat is an RTMP stream instead of an ordinary video chat.
    • isJoined

      public boolean isJoined
      True, if the call is joined.
    • needRejoin

      public boolean needRejoin
      True, if user was kicked from the call because of network loss and the call needs to be rejoined.
    • canBeManaged

      public boolean canBeManaged
      True, if the current user can manage the group call.
    • participantCount

      public int participantCount
      Number of participants in the group call.
    • hasHiddenListeners

      public boolean hasHiddenListeners
      True, if group call participants, which are muted, aren't returned in participant list.
    • loadedAllParticipants

      public boolean loadedAllParticipants
      True, if all group call participants are loaded.
    • recentSpeakers

      public TdApi.GroupCallRecentSpeaker[] recentSpeakers
      At most 3 recently speaking users in the group call.
    • isMyVideoEnabled

      public boolean isMyVideoEnabled
      True, if the current user's video is enabled.
    • isMyVideoPaused

      public boolean isMyVideoPaused
      True, if the current user's video is paused.
    • canEnableVideo

      public boolean canEnableVideo
      True, if the current user can broadcast video or share screen.
    • muteNewParticipants

      public boolean muteNewParticipants
      True, if only group call administrators can unmute new participants.
    • canToggleMuteNewParticipants

      public boolean canToggleMuteNewParticipants
      True, if the current user can enable or disable muteNewParticipants setting.
    • recordDuration

      public int recordDuration
      Duration of the ongoing group call recording, in seconds; 0 if none. An updateGroupCall update is not triggered when value of this field changes, but the same recording goes on.
    • isVideoRecorded

      public boolean isVideoRecorded
      True, if a video file is being recorded for the call.
    • duration

      public int duration
      Call duration, in seconds; for ended calls only.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GroupCall

      public GroupCall()
      Describes a group call.
    • GroupCall

      public GroupCall(int id, String title, int scheduledStartDate, boolean enabledStartNotification, boolean isActive, boolean isRtmpStream, boolean isJoined, boolean needRejoin, boolean canBeManaged, int participantCount, boolean hasHiddenListeners, boolean loadedAllParticipants, TdApi.GroupCallRecentSpeaker[] recentSpeakers, boolean isMyVideoEnabled, boolean isMyVideoPaused, boolean canEnableVideo, boolean muteNewParticipants, boolean canToggleMuteNewParticipants, int recordDuration, boolean isVideoRecorded, int duration)
      Describes a group call.
      Parameters:
      id - Group call identifier.
      title - Group call title.
      scheduledStartDate - Point in time (Unix timestamp) when the group call is supposed to be started by an administrator; 0 if it is already active or was ended.
      enabledStartNotification - True, if the group call is scheduled and the current user will receive a notification when the group call will start.
      isActive - True, if the call is active.
      isRtmpStream - True, if the chat is an RTMP stream instead of an ordinary video chat.
      isJoined - True, if the call is joined.
      needRejoin - True, if user was kicked from the call because of network loss and the call needs to be rejoined.
      canBeManaged - True, if the current user can manage the group call.
      participantCount - Number of participants in the group call.
      hasHiddenListeners - True, if group call participants, which are muted, aren't returned in participant list.
      loadedAllParticipants - True, if all group call participants are loaded.
      recentSpeakers - At most 3 recently speaking users in the group call.
      isMyVideoEnabled - True, if the current user's video is enabled.
      isMyVideoPaused - True, if the current user's video is paused.
      canEnableVideo - True, if the current user can broadcast video or share screen.
      muteNewParticipants - True, if only group call administrators can unmute new participants.
      canToggleMuteNewParticipants - True, if the current user can enable or disable muteNewParticipants setting.
      recordDuration - Duration of the ongoing group call recording, in seconds; 0 if none. An updateGroupCall update is not triggered when value of this field changes, but the same recording goes on.
      isVideoRecorded - True, if a video file is being recorded for the call.
      duration - Call duration, in seconds; for ended calls only.
    • GroupCall

      public GroupCall(DataInput input) throws IOException
      Describes a group call.
      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