All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.callstats.sdk.data.ConferenceStats Maven / Gradle / Ivy

There is a newer version: 5.4.0
Show newest version
package io.callstats.sdk.data;

import com.google.gson.annotations.SerializedName;

public class ConferenceStats {

  transient String localID;
  transient String remoteID;
  @SerializedName("type")
  String statsType; // inbound or outbound
  String ssrc;
  String originID;
  transient String ucID;
  transient String confID;
  Long packetsSent;
  Long packetsReceived;
  Long packetsLost;
  Long packetsDuplicated;
  Long packetsDiscarded;
  Long packetsRepaired;

  Long bytesSent;
  Long bytesReceived;
  Long bytesDuplicated;
  Long bytesDiscarded;
  Long bytesRepaired;

  Long burstPacketsLost;
  Long burstLossIntervalCount;
  Long burstPacketsDiscarded;
  Long burstDiscardIntervalCount;

  Double gapLossRate;
  Double gapDiscardRate;

  Double fractionalPacketLost;
  Double fractionalPacketDiscarded;

  Long framesSent;
  Long framesReceived;
  Long framesLost;
  Long framesDropped;
  Long framesCorrupted;

  Integer rtt;
  Double jitter;

  Double currentPlayoutDelay;
  Double maxPlayoutDelay;
  Double minPlayoutDelay;

  Double currentJBDelay;
  Double highWatermarkJBDelay;
  Double lowWatermarkJBDelay;
  Double maxJBDelay;
  Double minJBDelay;
  Double avsync;

  public ConferenceStats() {

  }

  public ConferenceStats(ConferenceStatsBuilder builder) {
    this.localID = builder.getLocalUserID();
    this.statsType = builder.getStatsType();
    this.originID = builder.getFromUserID();
    this.ssrc = builder.getSsrc();
    this.remoteID = builder.getRemoteUserID();
    this.ucID = builder.getUcID();
    this.confID = builder.getConfID();
    this.packetsSent = builder.getPacketsSent();
    this.packetsReceived = builder.getPacketsReceived();
    this.packetsLost = builder.getPacketsLost();
    this.packetsDuplicated = builder.getPacketsDuplicated();
    this.packetsDiscarded = builder.getPacketsDiscarded();
    this.packetsRepaired = builder.getPacketsRepaired();

    this.bytesSent = builder.getBytesSent();
    this.bytesReceived = builder.getBytesReceived();
    this.bytesDuplicated = builder.getBytesDuplicated();
    this.bytesDiscarded = builder.getBytesDiscarded();
    this.bytesRepaired = builder.getBytesRepaired();

    this.burstPacketsLost = builder.getBurstPacketsLost();
    this.burstLossIntervalCount = builder.getBurstLossIntervalCount();
    this.burstPacketsDiscarded = builder.getBurstPacketsDiscarded();
    this.burstDiscardIntervalCount = builder.getBurstDiscardIntervalCount();

    this.gapLossRate = builder.getGapLossRate();
    this.gapDiscardRate = builder.getGapDiscardRate();

    this.fractionalPacketLost = builder.getFractionalPacketLost();
    this.fractionalPacketDiscarded = builder.getFractionalPacketDiscarded();

    this.framesSent = builder.getFramesSent();
    this.framesReceived = builder.getFramesReceived();
    this.framesLost = builder.getFramesLost();
    this.framesDropped = builder.getFramesDropped();
    this.framesCorrupted = builder.getFramesCorrupted();

    this.rtt = builder.getRtt();
    this.jitter = builder.getJitter();

    this.currentPlayoutDelay = builder.getCurrentPlayoutDelay();
    this.maxPlayoutDelay = builder.getMaxPlayoutDelay();
    this.minPlayoutDelay = builder.getMinPlayoutDelay();

    this.currentJBDelay = builder.getCurrentJBDelay();
    this.highWatermarkJBDelay = builder.getHighWatermarkJBDelay();
    this.lowWatermarkJBDelay = builder.getLowWatermarkJBDelay();
    this.maxJBDelay = builder.getMaxJBDelay();
    this.minJBDelay = builder.getMinJBDelay();
    this.avsync = builder.getAvsync();
  }

  public String getUcID() {
    return this.ucID;
  }

  public void setUcID(String ucID) {
    this.ucID = ucID;
  }

  public String getConfID() {
    return this.confID;
  }

  public void setConfID(String confID) {
    this.confID = confID;
  }

  public String getLocalUserID() {
    return this.localID;
  }

  public void setLocalUserID(String localUserID) {
    this.localID = localUserID;
  }

  public String getSsrc() {
    return this.ssrc;
  }

  public void setSsrc(String ssrc) {
    this.ssrc = ssrc;
  }

  public String getFromUserID() {
    return this.originID;
  }

  public void setFromUserID(String fromUserID) {
    this.originID = fromUserID;
  }

  public String getStatsType() {
    return this.statsType;
  }

  public void setStatsType(CallStatsStreamType statsType) {
    this.statsType = statsType.getMessageType();
  }

  public String getRemoteUserID() {
    return this.remoteID;
  }

  public void setRemoteUserID(String remoteUserID) {
    this.remoteID = remoteUserID;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy