Enum Class Link.PostHint

java.lang.Object
java.lang.Enum<Link.PostHint>
io.github.yvasyliev.telegramforwarderbot.reddit.dto.Link.PostHint
All Implemented Interfaces:
Serializable, Comparable<Link.PostHint>, Constable
Enclosing class:
Link

public static enum Link.PostHint extends Enum<Link.PostHint>
Represents the hint for the type of post. This can be used to determine how to handle the post (e.g., as an image, video, etc.).
  • Enum Constant Details

    • HOSTED_VIDEO

      public static final Link.PostHint HOSTED_VIDEO
      Represents a post that contains a video hosted on Reddit.
    • IMAGE

      public static final Link.PostHint IMAGE
      Represents a post that contains an image.
    • RICH_VIDEO

      public static final Link.PostHint RICH_VIDEO
      Represents a post that contains a video hosted on an external platform.
  • Method Details

    • values

      public static Link.PostHint[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Link.PostHint valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null