Class ReadonlyEmbed.EmbedVideo
- java.lang.Object
-
- club.minnced.discord.webhook.receive.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 Summary
Constructors Constructor Description EmbedVideo(@NotNull String url, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHeight()The height of this video@NotNull StringgetUrl()The URL fot this videointgetWidth()The width of this videoStringtoJSONString()StringtoString()JSON representation of this video
-
-
-
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
-
toJSONString
public String toJSONString()
- Specified by:
toJSONStringin interfaceorg.json.JSONString
-
-