public static class TdApi.Document extends TdApi.Object
| Modifier and Type | Field and 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.Minithumbnail |
minithumbnail
Document minithumbnail; may be null.
|
TdApi.Thumbnail |
thumbnail
Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null.
|
| Constructor and Description |
|---|
Document()
Describes a document of any type.
|
Document(java.lang.String fileName,
java.lang.String mimeType,
TdApi.Minithumbnail minithumbnail,
TdApi.Thumbnail thumbnail,
TdApi.File document)
Describes a document of any type.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String fileName
public java.lang.String mimeType
public TdApi.Minithumbnail minithumbnail
public TdApi.Thumbnail thumbnail
public TdApi.File document
public static final int CONSTRUCTOR
public Document()
public Document(java.lang.String fileName,
java.lang.String mimeType,
TdApi.Minithumbnail minithumbnail,
TdApi.Thumbnail thumbnail,
TdApi.File document)
fileName - Original name of the file; as defined by the sender.mimeType - MIME type of the file; as defined by the sender.minithumbnail - Document minithumbnail; may be null.thumbnail - Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null.document - File containing the document.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object