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 int
getHeight()
The height of this video@NotNull String
getUrl()
The URL fot this videoint
getWidth()
The width of this videoString
toJSONString()
String
toString()
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:
toJSONString
in interfaceorg.json.JSONString
-
-