com.afrozaar.wordpress.wpapi.v2.model.PostMeta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wp-api-v2-client-java Show documentation
Show all versions of wp-api-v2-client-java Show documentation
A Java client implementation to the WordPress WP-API v2 plugin.
package com.afrozaar.wordpress.wpapi.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PostMeta {
//3746 -> [{"id":11934,"key":"baobab_is_premium","value":"true","_links":{"about":[{"embeddable":true,"href":"http:\/\/johan-wp\/wp-json\/wp\/posts\/3746"}]}}]
@JsonProperty("id")
private Long id;
@JsonProperty("key")
private String key;
@JsonProperty("value")
private String value;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("PostMeta{");
sb.append("id=").append(id);
sb.append(", key='").append(key).append('\'');
sb.append(", value='").append(value).append('\'');
sb.append('}');
return sb.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy