Module tdlight.api

Class TdApi.SetAutosaveSettings

Enclosing class:
TdApi

public static final class TdApi.SetAutosaveSettings extends TdApi.Function<TdApi.Ok>
Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to getAutosaveSettings.

Returns Ok

  • Field Details

  • Constructor Details

    • SetAutosaveSettings

      public SetAutosaveSettings()
      Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to getAutosaveSettings.

      Returns Ok

    • SetAutosaveSettings

      public SetAutosaveSettings(TdApi.AutosaveSettingsScope scope, TdApi.ScopeAutosaveSettings settings)
      Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to getAutosaveSettings.

      Returns Ok

      Parameters:
      scope - Autosave settings scope.
      settings - New autosave settings for the scope; pass null to set autosave settings to default.

      Returns Ok

    • SetAutosaveSettings

      public SetAutosaveSettings(DataInput input) throws IOException
      Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to getAutosaveSettings.

      Returns Ok

      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