Module tdlight.api

Class TdApi.UpdateServiceNotification

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Update
it.tdlight.jni.TdApi.UpdateServiceNotification
Enclosing class:
TdApi

public static final class TdApi.UpdateServiceNotification extends TdApi.Update
A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification.
  • Field Details

    • type

      public String type
      Notification type. If type begins with "AUTH_KEY_DROP_", then two buttons "Cancel" and "Log out" must be shown under notification; if user presses the second, all local data must be destroyed using Destroy method.
    • content

      public TdApi.MessageContent content
      Notification content.
    • CONSTRUCTOR

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

    • UpdateServiceNotification

      public UpdateServiceNotification()
      A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification.
    • UpdateServiceNotification

      public UpdateServiceNotification(String type, TdApi.MessageContent content)
      A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification.
      Parameters:
      type - Notification type. If type begins with "AUTH_KEY_DROP_", then two buttons "Cancel" and "Log out" must be shown under notification; if user presses the second, all local data must be destroyed using Destroy method.
      content - Notification content.
    • UpdateServiceNotification

      public UpdateServiceNotification(DataInput input) throws IOException
      A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification.
      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