Class Formatter

java.lang.Object
com.whatsapp.api.utils.Formatter

public class Formatter extends Object
custom text formatter
  • Constructor Details

    • Formatter

      public Formatter()
  • Method Details

    • italic

      public static String italic(String text)
      Italic string.
      Parameters:
      text - String
      Returns:
      text formatted in italic. Example: "italic text"
    • bold

      public static String bold(String text)
      Bold string.
      Parameters:
      text - String
      Returns:
      bold formatted text. Example: "bold text"
    • strikethrough

      public static String strikethrough(String text)
      Strikethrough string.
      Parameters:
      text - String
      Returns:
      strikethrough text. Example: "strikethrough text"
    • code

      public static String code(String text)
      Code string.
      Parameters:
      text - String
      Returns:
      text formatted as code. Example: "code text"