Module tdlight.api

Class TdApi.SetName

Enclosing class:
TdApi

public static final class TdApi.SetName extends TdApi.Function<TdApi.Ok>
Changes the first and last name of the current user.

Returns Ok

  • Field Details

    • firstName

      public String firstName
      The new value of the first name for the current user; 1-64 characters.
    • lastName

      public String lastName
      The new value of the optional last name for the current user; 0-64 characters.
    • CONSTRUCTOR

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

    • SetName

      public SetName()
      Changes the first and last name of the current user.

      Returns Ok

    • SetName

      public SetName(String firstName, String lastName)
      Changes the first and last name of the current user.

      Returns Ok

      Parameters:
      firstName - The new value of the first name for the current user; 1-64 characters.
      lastName - The new value of the optional last name for the current user; 0-64 characters.

      Returns Ok

    • SetName

      public SetName(DataInput input) throws IOException
      Changes the first and last name of the current user.

      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