Class 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 Detail

      • EmbedProvider

        public EmbedProvider​(@Nullable
                             @Nullable String name,
                             @Nullable
                             @Nullable String url)
    • Method Detail

      • getName

        @Nullable
        public @Nullable String getName()
        The name of the provider, or null if none is set
        Returns:
        The name
      • getUrl

        @Nullable
        public @Nullable String getUrl()
        The url of the provider, or null if none is set
        Returns:
        The url
      • toString

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

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