Class LocationContent

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

public class LocationContent extends BaseContent
位置消息内容类
See Also:
  • Field Details

    • latitude

      private String latitude
    • longitude

      private String longitude
    • address

      private String address
    • label

      private String label
  • Constructor Details

    • LocationContent

      public LocationContent()
  • Method Details

    • fromJson

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