Module tdlight.api

Class TdApi.InputFileGenerated

Enclosing class:
TdApi

public static final class TdApi.InputFileGenerated extends TdApi.InputFile
A file generated by the application.
  • Field Details

    • originalPath

      public String originalPath
      Local path to a file from which the file is generated; may be empty if there is no such file.
    • conversion

      public String conversion
      String specifying the conversion applied to the original file; must be persistent across application restarts. Conversions beginning with '#' are reserved for internal TDLib usage.
    • expectedSize

      public long expectedSize
      Expected size of the generated file, in bytes; 0 if unknown.
    • CONSTRUCTOR

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

    • InputFileGenerated

      public InputFileGenerated()
      A file generated by the application.
    • InputFileGenerated

      public InputFileGenerated(String originalPath, String conversion, long expectedSize)
      A file generated by the application.
      Parameters:
      originalPath - Local path to a file from which the file is generated; may be empty if there is no such file.
      conversion - String specifying the conversion applied to the original file; must be persistent across application restarts. Conversions beginning with '#' are reserved for internal TDLib usage.
      expectedSize - Expected size of the generated file, in bytes; 0 if unknown.
    • InputFileGenerated

      public InputFileGenerated(DataInput input) throws IOException
      A file generated by the application.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object