Class TdApi.GetFileExtension

Enclosing class:
TdApi

public static class TdApi.GetFileExtension extends TdApi.Function<TdApi.Text>
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously.

Returns Text

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    The MIME type of the file.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which returns the extension of a file, guessed by its MIME type.
    Creates a function, which returns the extension of a file, guessed by its MIME type.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • mimeType

      public String mimeType
      The MIME type of the file.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetFileExtension

      public GetFileExtension()
      Default constructor for a function, which returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously.

      Returns Text

    • GetFileExtension

      public GetFileExtension(String mimeType)
      Creates a function, which returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously.

      Returns Text

      Parameters:
      mimeType - The MIME type of the file.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR