|
| 1 | +package me.chanjar.weixin.cp.bean.oa.meetingroom; |
| 2 | + |
| 3 | + |
| 4 | +import com.google.gson.annotations.SerializedName; |
| 5 | +import lombok.AllArgsConstructor; |
| 6 | +import lombok.Builder; |
| 7 | +import lombok.Data; |
| 8 | +import lombok.NoArgsConstructor; |
| 9 | +import lombok.experimental.Accessors; |
| 10 | +import me.chanjar.weixin.common.bean.ToJson; |
| 11 | +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; |
| 12 | + |
| 13 | +import java.io.Serializable; |
| 14 | +import java.util.List; |
| 15 | + |
| 16 | +/** |
| 17 | + * @author fcat |
| 18 | + * @version 1.0 |
| 19 | + * Create by 2022/8/12 22:46 |
| 20 | + */ |
| 21 | +@Data |
| 22 | +@Builder |
| 23 | +@NoArgsConstructor |
| 24 | +@AllArgsConstructor |
| 25 | +@Accessors(chain = true) |
| 26 | +public class WxCpOaMeetingRoom implements Serializable, ToJson { |
| 27 | + private static final long serialVersionUID = 2825289798463742532L; |
| 28 | + /** |
| 29 | + * 会议室Id |
| 30 | + */ |
| 31 | + @SerializedName("meetingroom_id") |
| 32 | + private Integer meetingroomId; |
| 33 | + /** |
| 34 | + * 会议室名称,最多30个字符 |
| 35 | + */ |
| 36 | + @SerializedName("name") |
| 37 | + private String name; |
| 38 | + /** |
| 39 | + * 会议室所能容纳的人数 |
| 40 | + */ |
| 41 | + @SerializedName("capacity") |
| 42 | + private Integer capacity; |
| 43 | + /** |
| 44 | + * 会议室所在城市 |
| 45 | + */ |
| 46 | + @SerializedName("city") |
| 47 | + private String city; |
| 48 | + /** |
| 49 | + * 会议室所在楼宇 |
| 50 | + */ |
| 51 | + @SerializedName("building") |
| 52 | + private String building; |
| 53 | + /** |
| 54 | + * 会议室所在楼层 |
| 55 | + */ |
| 56 | + @SerializedName("floor") |
| 57 | + private String floor; |
| 58 | + /** |
| 59 | + * 会议室支持的设备列表,参数详细1电视2电话3投影4白板5视频 |
| 60 | + */ |
| 61 | + @SerializedName("equipment") |
| 62 | + private List<Integer> equipment; |
| 63 | + /** |
| 64 | + * 会议室所在建筑经纬度 |
| 65 | + */ |
| 66 | + @SerializedName("coordinate") |
| 67 | + private Coordinate coordinate; |
| 68 | + /** |
| 69 | + * 会议室是否需要预定 |
| 70 | + */ |
| 71 | + @SerializedName("need_approval") |
| 72 | + private Integer needApproval; |
| 73 | + |
| 74 | + @Override |
| 75 | + public String toJson() { |
| 76 | + return WxCpGsonBuilder.create().toJson(this); |
| 77 | + } |
| 78 | + |
| 79 | + @Data |
| 80 | + @AllArgsConstructor |
| 81 | + public static class Coordinate implements Serializable { |
| 82 | + private static final long serialVersionUID = 6626968559923978694L; |
| 83 | + /** |
| 84 | + * 纬度 |
| 85 | + */ |
| 86 | + @SerializedName("latitude") |
| 87 | + private String latitude; |
| 88 | + /** |
| 89 | + * 经度 |
| 90 | + */ |
| 91 | + @SerializedName("longitude") |
| 92 | + private String longitude; |
| 93 | + } |
| 94 | +} |
0 commit comments