Module tdlight.api

Class TdApi.StatisticalValue

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

public static final class TdApi.StatisticalValue extends TdApi.Object
A value with information about its recent changes.
  • Field Details

    • value

      public double value
      The current value.
    • previousValue

      public double previousValue
      The value for the previous day.
    • growthRatePercentage

      public double growthRatePercentage
      The growth rate of the value, as a percentage.
    • CONSTRUCTOR

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

    • StatisticalValue

      public StatisticalValue()
      A value with information about its recent changes.
    • StatisticalValue

      public StatisticalValue(double value, double previousValue, double growthRatePercentage)
      A value with information about its recent changes.
      Parameters:
      value - The current value.
      previousValue - The value for the previous day.
      growthRatePercentage - The growth rate of the value, as a percentage.
    • StatisticalValue

      public StatisticalValue(DataInput input) throws IOException
      A value with information about its recent changes.
      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