File tree Expand file tree Collapse file tree
src/main/java/com/afrozaar/wordpress/wpapi/v2/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55 <groupId >com.afrozaar.wordpress</groupId >
66 <artifactId >wp-api-v2-client-java</artifactId >
7- <version >4.11.2-SNAPSHOT </version >
7+ <version >4.11.2</version >
88
99 <packaging >jar</packaging >
1010
Original file line number Diff line number Diff line change 11package com .afrozaar .wordpress .wpapi .v2 .model ;
22
3- import com .fasterxml .jackson .annotation .JsonAnyGetter ;
4- import com .fasterxml .jackson .annotation .JsonAnySetter ;
5- import com .fasterxml .jackson .annotation .JsonIgnore ;
6- import com .fasterxml .jackson .annotation .JsonInclude ;
7- import com .fasterxml .jackson .annotation .JsonProperty ;
8- import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
3+ import com .fasterxml .jackson .annotation .*;
94
105import javax .annotation .Generated ;
11-
126import java .util .ArrayList ;
137import java .util .HashMap ;
148import java .util .List ;
4438public class Post {
4539
4640 @ JsonProperty ("author" )
47- private List <Long > author = new ArrayList <>();
41+ private List <Number > author = new ArrayList <>();
4842 @ JsonProperty ("content" )
4943 private Content content ;
5044 @ JsonProperty ("status" )
@@ -102,10 +96,10 @@ public void setCategoryIds(List<Long> categoryIds) {
10296 }
10397
10498 public Long getAuthor () {
105- return author .size () > 0 ? author .get (0 ) : null ;
99+ return author .size () > 0 ? author .get (0 ). longValue () : null ;
106100 }
107101
108- public void setAuthor (List <Long > author ) {
102+ public void setAuthor (List <Number > author ) {
109103 this .author = author ;
110104 }
111105
You can’t perform that action at this time.
0 commit comments