1 package org.oxerr.youzan.dto.item;
2
3 import java.io.Serializable;
4 import java.time.Instant;
5
6 import org.oxerr.youzan.dto.deserializer.InstantDeserializer;
7
8 import com.fasterxml.jackson.annotation.JsonProperty;
9 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
11
12
13
14 public class GoodsImage implements Serializable {
15
16 private static final long serialVersionUID = 2016061901L;
17
18
19
20
21 private String thumbnail;
22
23
24
25
26 private Instant created;
27
28
29
30
31 private Long id;
32
33
34
35
36 private String medium;
37
38
39
40
41 private String url;
42
43
44
45
46 private String combine;
47
48 public GoodsImage() {
49 }
50
51 public GoodsImage(
52 @JsonProperty("thumbnail") String thumbnail,
53 @JsonProperty("created")
54 @JsonDeserialize(using = InstantDeserializer.class)
55 Instant created,
56 @JsonProperty("id") Long id,
57 @JsonProperty("medium") String medium,
58 @JsonProperty("url") String url,
59 @JsonProperty("combine") String combine
60 ) {
61 this.thumbnail = thumbnail;
62 this.created = created;
63 this.id = id;
64 this.medium = medium;
65 this.url = url;
66 this.combine = combine;
67 }
68
69 public String getThumbnail() {
70 return thumbnail;
71 }
72
73 public void setThumbnail(String thumbnail) {
74 this.thumbnail = thumbnail;
75 }
76
77 public Instant getCreated() {
78 return created;
79 }
80
81 public void setCreated(Instant created) {
82 this.created = created;
83 }
84
85 public Long getId() {
86 return id;
87 }
88
89 public void setId(Long id) {
90 this.id = id;
91 }
92
93 public String getMedium() {
94 return medium;
95 }
96
97 public void setMedium(String medium) {
98 this.medium = medium;
99 }
100
101 public String getUrl() {
102 return url;
103 }
104
105 public void setUrl(String url) {
106 this.url = url;
107 }
108
109 public String getCombine() {
110 return combine;
111 }
112
113 public void setCombine(String combine) {
114 this.combine = combine;
115 }
116
117 }