public static class TdApi.GetFileMimeType extends TdApi.Function<TdApi.Text>
Returns Text
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
fileName
The name of the file or path to the file.
|
| Constructor and Description |
|---|
GetFileMimeType()
Default constructor for a function, which returns the MIME type of a file, guessed by its extension.
|
GetFileMimeType(java.lang.String fileName)
Creates a function, which returns the MIME type of a file, guessed by its extension.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String fileName
public static final int CONSTRUCTOR
public GetFileMimeType()
Returns Text
public GetFileMimeType(java.lang.String fileName)
Returns Text
fileName - The name of the file or path to the file.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object