Class ReadonlyEmbed.EmbedProvider
- java.lang.Object
-
- club.minnced.discord.webhook.receive.ReadonlyEmbed.EmbedProvider
-
- All Implemented Interfaces:
org.json.JSONString
- Enclosing class:
- ReadonlyEmbed
public static class ReadonlyEmbed.EmbedProvider extends Object implements org.json.JSONString
POJO containing meta-data for an embed provider- See Also:
ReadonlyEmbed.getProvider()
-
-
Constructor Summary
Constructors Constructor Description EmbedProvider(@Nullable String name, @Nullable String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable String
getName()
The name of the provider, ornull
if none is set@Nullable String
getUrl()
The url of the provider, ornull
if none is setString
toJSONString()
String
toString()
JSON representation of this provider
-
-
-
Method Detail
-
getName
@Nullable public @Nullable String getName()
The name of the provider, ornull
if none is set- Returns:
- The name
-
getUrl
@Nullable public @Nullable String getUrl()
The url of the provider, ornull
if none is set- Returns:
- The url
-
toString
public String toString()
JSON representation of this provider
-
toJSONString
public String toJSONString()
- Specified by:
toJSONString
in interfaceorg.json.JSONString
-
-