Package org.drinkless.tdlib
Class TdApi.GetFileMimeType
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.GetFileMimeType
-
- Enclosing class:
- TdApi
public static class TdApi.GetFileMimeType extends TdApi.Function
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously.Returns
Text
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringfileNameThe name of the file or path to the file.
-
Constructor Summary
Constructors Constructor Description GetFileMimeType()Default constructor for a function, which returns the MIME type of a file, guessed by its extension.GetFileMimeType(String fileName)Creates a function, which returns the MIME type of a file, guessed by its extension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
fileName
public String fileName
The name of the file or path to the file.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GetFileMimeType
public GetFileMimeType()
Default constructor for a function, which returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously.Returns
Text
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-