Class ReadonlyEmbed.EmbedVideo

  • All Implemented Interfaces:
    org.json.JSONString
    Enclosing class:
    ReadonlyEmbed

    public static class ReadonlyEmbed.EmbedVideo
    extends Object
    implements org.json.JSONString
    POJO containing meta-data about an embed video
    See Also:
    ReadonlyEmbed.getVideo()
    • Constructor Detail

      • EmbedVideo

        public EmbedVideo​(@NotNull
                          @NotNull String url,
                          int width,
                          int height)
    • Method Detail

      • getUrl

        @NotNull
        public @NotNull String getUrl()
        The URL fot this video
        Returns:
        The URL
      • getWidth

        public int getWidth()
        The width of this video
        Returns:
        The width
      • getHeight

        public int getHeight()
        The height of this video
        Returns:
        The height
      • toString

        public String toString()
        JSON representation of this video
        Overrides:
        toString in class Object
        Returns:
        The JSON representation
      • toJSONString

        public String toJSONString()
        Specified by:
        toJSONString in interface org.json.JSONString