Class TdApi.Document

  • Enclosing class:
    TdApi

    public static class TdApi.Document
    extends TdApi.Object
    Describes a document of any type.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      TdApi.File document
      File containing the document.
      java.lang.String fileName
      Original name of the file; as defined by the sender.
      java.lang.String mimeType
      MIME type of the file; as defined by the sender.
      TdApi.PhotoSize thumbnail
      Document thumbnail; as defined by the sender; may be null.
    • Constructor Summary

      Constructors 
      Constructor Description
      Document()
      Default constructor.
      Document​(java.lang.String fileName, java.lang.String mimeType, TdApi.PhotoSize thumbnail, TdApi.File document)
      Constructor for initialization of all fields.
    • Field Detail

      • fileName

        public java.lang.String fileName
        Original name of the file; as defined by the sender.
      • mimeType

        public java.lang.String mimeType
        MIME type of the file; as defined by the sender.
      • thumbnail

        public TdApi.PhotoSize thumbnail
        Document thumbnail; as defined by the sender; may be null.
      • document

        public TdApi.File document
        File containing the document.
      • CONSTRUCTOR

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

      • Document

        public Document()
        Default constructor.
      • Document

        public Document​(java.lang.String fileName,
                        java.lang.String mimeType,
                        TdApi.PhotoSize thumbnail,
                        TdApi.File document)
        Constructor for initialization of all fields.
        Parameters:
        fileName - Original name of the file; as defined by the sender.
        mimeType - MIME type of the file; as defined by the sender.
        thumbnail - Document thumbnail; as defined by the sender; may be null.
        document - File containing the document.