Class TdApi.Wallpaper

  • Enclosing class:
    TdApi

    public static class TdApi.Wallpaper
    extends TdApi.Object
    Contains information about a wallpaper.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int color
      Main color of the wallpaper in RGB24 format; should be treated as background color if no photos are specified.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      int id
      Unique persistent wallpaper identifier.
      TdApi.PhotoSize[] sizes
      Available variants of the wallpaper in different sizes.
    • Constructor Summary

      Constructors 
      Constructor Description
      Wallpaper()
      Default constructor.
      Wallpaper​(int id, TdApi.PhotoSize[] sizes, int color)
      Constructor for initialization of all fields.
    • Field Detail

      • id

        public int id
        Unique persistent wallpaper identifier.
      • sizes

        public TdApi.PhotoSize[] sizes
        Available variants of the wallpaper in different sizes. These photos can only be downloaded; they can't be sent in a message.
      • color

        public int color
        Main color of the wallpaper in RGB24 format; should be treated as background color if no photos are specified.
      • CONSTRUCTOR

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

      • Wallpaper

        public Wallpaper()
        Default constructor.
      • Wallpaper

        public Wallpaper​(int id,
                         TdApi.PhotoSize[] sizes,
                         int color)
        Constructor for initialization of all fields.
        Parameters:
        id - Unique persistent wallpaper identifier.
        sizes - Available variants of the wallpaper in different sizes. These photos can only be downloaded; they can't be sent in a message.
        color - Main color of the wallpaper in RGB24 format; should be treated as background color if no photos are specified.