Module tdlight.api

Class TdApi.SponsoredMessages

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.SponsoredMessages
Enclosing class:
TdApi

public static final class TdApi.SponsoredMessages extends TdApi.Object
Contains a list of sponsored messages.
  • Field Details

    • messages

      public TdApi.SponsoredMessage[] messages
      List of sponsored messages.
    • messagesBetween

      public int messagesBetween
      The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after all ordinary messages.
    • CONSTRUCTOR

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

    • SponsoredMessages

      public SponsoredMessages()
      Contains a list of sponsored messages.
    • SponsoredMessages

      public SponsoredMessages(TdApi.SponsoredMessage[] messages, int messagesBetween)
      Contains a list of sponsored messages.
      Parameters:
      messages - List of sponsored messages.
      messagesBetween - The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after all ordinary messages.
    • SponsoredMessages

      public SponsoredMessages(DataInput input) throws IOException
      Contains a list of sponsored messages.
      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