Module tdlight.api

Class TdApi.FormattedText

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

public static final class TdApi.FormattedText extends TdApi.Object
A text with some entities.
  • Field Details

    • text

      public String text
      The text.
    • entities

      public TdApi.TextEntity[] entities
      Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code and PreCode entities can't contain other entities. BlockQuote entities can't contain other BlockQuote entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can't contain each other.
    • CONSTRUCTOR

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

    • FormattedText

      public FormattedText()
      A text with some entities.
    • FormattedText

      public FormattedText(String text, TdApi.TextEntity[] entities)
      A text with some entities.
      Parameters:
      text - The text.
      entities - Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code and PreCode entities can't contain other entities. BlockQuote entities can't contain other BlockQuote entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can't contain each other.
    • FormattedText

      public FormattedText(DataInput input) throws IOException
      A text with some entities.
      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