@@ -16,6 +16,7 @@ public class Post {
1616 private Date created ;
1717 private String metaDescription ;
1818 private Date published ;
19+ private Date scheduled ;
1920 private String seoTitle ;
2021 private String slug ;
2122 private Status status ;
@@ -74,6 +75,14 @@ public void setPublished(Date published) {
7475 this .published = published ;
7576 }
7677
78+ public Date getScheduled () {
79+ return scheduled ;
80+ }
81+
82+ public void setScheduled (Date scheduled ) {
83+ this .scheduled = scheduled ;
84+ }
85+
7786 public String getSeoTitle () {
7887 return seoTitle ;
7988 }
@@ -151,6 +160,7 @@ public boolean equals(Object o) {
151160 Objects .equals (created , post .created ) &&
152161 Objects .equals (metaDescription , post .metaDescription ) &&
153162 Objects .equals (published , post .published ) &&
163+ Objects .equals (scheduled , post .scheduled ) &&
154164 Objects .equals (seoTitle , post .seoTitle ) &&
155165 Objects .equals (slug , post .slug ) &&
156166 status == post .status &&
@@ -164,7 +174,7 @@ public boolean equals(Object o) {
164174
165175 @ Override
166176 public int hashCode () {
167- return Objects .hash (author , body , categories , created , metaDescription , published , seoTitle , slug , status , summary , tags , title , url , featuredImage , featuredImageAlt );
177+ return Objects .hash (author , body , categories , created , metaDescription , published , scheduled , seoTitle , slug , status , summary , tags , title , url , featuredImage , featuredImageAlt );
168178 }
169179
170180 @ Override
@@ -188,6 +198,10 @@ public enum Status {
188198 DRAFT ,
189199
190200 @ JsonProperty ("published" )
191- PUBLISHED
201+ PUBLISHED ,
202+
203+ @ JsonProperty ("scheduled" )
204+ SCHEDULED
192205 }
193206}
207+
0 commit comments