Package org.drinkless.tdlib

# Class TdApi.StarAmount

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarAmount

Enclosing class:
  `TdApi`

public static class TdApi.StarAmount extends TdApi.Object
Describes a possibly non-integer Telegram Star amount.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `int`
  `nanostarCount`
  The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999.
  `long`
  `starCount`
  The integer Telegram Star amount rounded to 0.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StarAmount()`
  Describes a possibly non-integer Telegram Star amount.
  `StarAmount(long starCount, int nanostarCount)`
  Describes a possibly non-integer Telegram Star amount.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getConstructor()`
  Returns an identifier uniquely determining type of the object.

  ### Methods inherited from class org.drinkless.tdlib.TdApi.Object

  `toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### starCount

    public long starCount
    The integer Telegram Star amount rounded to 0.

  - ### nanostarCount

    public int nanostarCount
    The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999.

  - ### CONSTRUCTOR

    public static final int CONSTRUCTOR
    Identifier uniquely determining type of the object.
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### StarAmount

    public StarAmount()
    Describes a possibly non-integer Telegram Star amount.

  - ### StarAmount

    public StarAmount(long starCount, int nanostarCount)
    Describes a possibly non-integer Telegram Star amount.
    Parameters:
      `starCount` - The integer Telegram Star amount rounded to 0.
      `nanostarCount` - The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999.

- ## 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