public class EntityFactory
extends java.lang.Object
| Constructor and Description |
|---|
EntityFactory() |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull ReadonlyAttachment |
makeAttachment(@NotNull org.json.JSONObject json)
Converts a attachment json into a
ReadonlyAttachment |
static @NotNull ReadonlyEmbed |
makeEmbed(@NotNull org.json.JSONObject json)
Converts an embed json into a
ReadonlyEmbed |
static WebhookEmbed.EmbedAuthor |
makeEmbedAuthor(@Nullable org.json.JSONObject json)
Converts an author json into a
WebhookEmbed.EmbedAuthor |
static WebhookEmbed.EmbedField |
makeEmbedField(@Nullable org.json.JSONObject json)
Converts a field json into a
WebhookEmbed.EmbedField |
static WebhookEmbed.EmbedFooter |
makeEmbedFooter(@Nullable org.json.JSONObject json)
Converts a footer json into a
WebhookEmbed.EmbedFooter |
static ReadonlyEmbed.EmbedImage |
makeEmbedImage(@Nullable org.json.JSONObject json)
Converts a image/thumbnail json into a
ReadonlyEmbed.EmbedImage |
static ReadonlyEmbed.EmbedProvider |
makeEmbedProvider(@Nullable org.json.JSONObject json)
Converts a provider json into a
ReadonlyEmbed.EmbedProvider |
static WebhookEmbed.EmbedTitle |
makeEmbedTitle(@NotNull org.json.JSONObject json)
Converts an embed json into a
WebhookEmbed.EmbedTitle |
static ReadonlyEmbed.EmbedVideo |
makeEmbedVideo(@Nullable org.json.JSONObject json)
Converts a video json into a
ReadonlyEmbed.EmbedVideo |
static @NotNull ReadonlyMessage |
makeMessage(@NotNull org.json.JSONObject json)
Converts a message json into a
ReadonlyMessage |
static @NotNull ReadonlyUser |
makeUser(@NotNull org.json.JSONObject json)
Converts a user json into a
ReadonlyUser |
@NotNull public static @NotNull ReadonlyUser makeUser(@NotNull @NotNull org.json.JSONObject json)
ReadonlyUserjson - The JSON representationReadonlyUser@NotNull public static @NotNull ReadonlyAttachment makeAttachment(@NotNull @NotNull org.json.JSONObject json)
ReadonlyAttachmentjson - The JSON representationReadonlyAttachment@Nullable public static WebhookEmbed.EmbedField makeEmbedField(@Nullable @Nullable org.json.JSONObject json)
WebhookEmbed.EmbedFieldjson - The JSON representationWebhookEmbed.EmbedField@Nullable public static WebhookEmbed.EmbedAuthor makeEmbedAuthor(@Nullable @Nullable org.json.JSONObject json)
WebhookEmbed.EmbedAuthorjson - The JSON representationWebhookEmbed.EmbedAuthor@Nullable public static WebhookEmbed.EmbedFooter makeEmbedFooter(@Nullable @Nullable org.json.JSONObject json)
WebhookEmbed.EmbedFooterjson - The JSON representationWebhookEmbed.EmbedFooter@Nullable public static WebhookEmbed.EmbedTitle makeEmbedTitle(@NotNull @NotNull org.json.JSONObject json)
WebhookEmbed.EmbedTitlejson - The JSON representationWebhookEmbed.EmbedTitle@Nullable public static ReadonlyEmbed.EmbedImage makeEmbedImage(@Nullable @Nullable org.json.JSONObject json)
ReadonlyEmbed.EmbedImagejson - The JSON representationReadonlyEmbed.EmbedImage@Nullable public static ReadonlyEmbed.EmbedProvider makeEmbedProvider(@Nullable @Nullable org.json.JSONObject json)
ReadonlyEmbed.EmbedProviderjson - The JSON representationReadonlyEmbed.EmbedProvider@Nullable public static ReadonlyEmbed.EmbedVideo makeEmbedVideo(@Nullable @Nullable org.json.JSONObject json)
ReadonlyEmbed.EmbedVideojson - The JSON representationReadonlyEmbed.EmbedVideo@NotNull public static @NotNull ReadonlyEmbed makeEmbed(@NotNull @NotNull org.json.JSONObject json)
ReadonlyEmbedjson - The JSON representationReadonlyEmbed@NotNull public static @NotNull ReadonlyMessage makeMessage(@NotNull @NotNull org.json.JSONObject json)
ReadonlyMessagejson - The JSON representationReadonlyMessage