Class RichPresence.Image

  • Enclosing interface:
    RichPresence

    public static class RichPresence.Image
    extends java.lang.Object
    Used to hold information on images within a Rich Presence profile
    • Constructor Summary

      Constructors 
      Constructor Description
      Image​(long applicationId, java.lang.String key, java.lang.String text)  
    • Constructor Detail

      • Image

        public Image​(long applicationId,
                     java.lang.String key,
                     java.lang.String text)
    • Method Detail

      • getKey

        @Nonnull
        public java.lang.String getKey()
        The key for this image, used for getUrl()
        Returns:
        The key for this image
      • getText

        @Nullable
        public java.lang.String getText()
        Text which is displayed when hovering the image in the official client
        Returns:
        Hover text for this image, or null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object