Class ImageContent

java.lang.Object
com.bytedesk.core.base.BaseContent
com.bytedesk.core.message.content.ImageContent
All Implemented Interfaces:
Serializable

public class ImageContent extends BaseContent
图片消息内容类
See Also:
  • Field Details

    • url

      private String url
    • width

      private String width
    • height

      private String height
    • label

      private String label
    • mimeType

      private String mimeType
    • size

      private String size
    • hash

      private String hash
    • thumbnail

      private String thumbnail
    • filename

      private String filename
  • Constructor Details

    • ImageContent

      public ImageContent()
  • Method Details

    • fromJson

      public static ImageContent fromJson(String json)
      从JSON字符串反序列化为ImageContent对象
      Parameters:
      json - JSON字符串
      Returns:
      ImageContent对象,如果解析失败返回null