|
| 1 | +package me.chanjar.weixin.mp.bean.wifi; |
| 2 | + |
| 3 | +import com.google.gson.JsonParser; |
| 4 | +import com.google.gson.annotations.SerializedName; |
| 5 | +import lombok.Data; |
| 6 | +import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; |
| 7 | + |
| 8 | +import java.util.List; |
| 9 | + |
| 10 | +/** |
| 11 | + * <pre> |
| 12 | + * Created by BinaryWang on 2018/6/10. |
| 13 | + * </pre> |
| 14 | + * |
| 15 | + * @author <a href="https://github.com/binarywang">Binary Wang</a> |
| 16 | + */ |
| 17 | +@Data |
| 18 | +public class WxMpWifiShopListResult { |
| 19 | + public static WxMpWifiShopListResult fromJson(String json) { |
| 20 | + return WxMpGsonBuilder.create().fromJson( |
| 21 | + new JsonParser().parse(json).getAsJsonObject().get("data"), |
| 22 | + WxMpWifiShopListResult.class); |
| 23 | + } |
| 24 | + |
| 25 | + /** |
| 26 | + * 总数 |
| 27 | + */ |
| 28 | + @SerializedName("totalcount") |
| 29 | + private int totalCount; |
| 30 | + |
| 31 | + /** |
| 32 | + * 分页下标 |
| 33 | + */ |
| 34 | + @SerializedName("pageindex") |
| 35 | + private int pageIndex; |
| 36 | + |
| 37 | + /** |
| 38 | + * 分页页数 |
| 39 | + */ |
| 40 | + @SerializedName("pagecount") |
| 41 | + private int pageCount; |
| 42 | + |
| 43 | + private List<Record> records; |
| 44 | + |
| 45 | + @Data |
| 46 | + public static class Record { |
| 47 | + |
| 48 | + /** |
| 49 | + * 门店ID(适用于微信连Wi-Fi业务) |
| 50 | + */ |
| 51 | + @SerializedName("shop_id") |
| 52 | + private Integer shopId; |
| 53 | + |
| 54 | + /** |
| 55 | + * 门店名称 |
| 56 | + */ |
| 57 | + @SerializedName("shop_name") |
| 58 | + private String shopName; |
| 59 | + |
| 60 | + /** |
| 61 | + * 无线网络设备的ssid,未添加设备为空,多个ssid时显示第一个 |
| 62 | + */ |
| 63 | + @SerializedName("ssid") |
| 64 | + private String ssid; |
| 65 | + |
| 66 | + /** |
| 67 | + * 无线网络设备的ssid列表,返回数组格式 |
| 68 | + */ |
| 69 | + @SerializedName("ssid_list") |
| 70 | + private List<String> ssidList; |
| 71 | + |
| 72 | + /** |
| 73 | + * 门店内设备的设备类型,0-未添加设备,1-专业型设备,4-密码型设备,5-portal自助型设备,31-portal改造型设备 |
| 74 | + */ |
| 75 | + @SerializedName("protocol_type") |
| 76 | + private Integer protocolType; |
| 77 | + |
| 78 | + /** |
| 79 | + * 商户自己的id,与门店poi_id对应关系,建议在添加门店时候建立关联关系,具体请参考“微信门店接口” |
| 80 | + */ |
| 81 | + @SerializedName("sid") |
| 82 | + private String sid; |
| 83 | + |
| 84 | + /** |
| 85 | + * 门店ID(适用于微信卡券、微信门店业务),具体定义参考微信门店,与shop_id一一对应 |
| 86 | + */ |
| 87 | + @SerializedName("poi_id") |
| 88 | + private String poiId; |
| 89 | + } |
| 90 | +} |
0 commit comments