com.afrozaar.wordpress.wpapi.v2.model.User 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.afrozaar.wordpress.wpapi.v2.deserializer.StringBooleanMapDeserializer;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import javax.annotation.Generated;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"_links",
"avatar_urls",
"capabilities",
"description",
"email",
"first_name",
"id",
"last_name",
"link",
"name",
"nickname",
"registered_date",
"roles",
"slug",
"url"
})
public class User {
@JsonProperty("_links")
private Links Links;
@JsonProperty("avatar_urls")
private AvatarUrls avatarUrls;
@JsonProperty("capabilities")
@JsonDeserialize(using = StringBooleanMapDeserializer.class)
private Map capabilities;
@JsonProperty("description")
private String description;
@JsonProperty("email")
private String email;
@JsonProperty("first_name")
private String firstName;
@JsonProperty("id")
private Long id;
@JsonProperty("last_name")
private String lastName;
@JsonProperty("link")
private String link;
@JsonProperty("name")
private String name;
@JsonProperty("nickname")
private String nickname;
@JsonProperty("registered_date")
private String registeredDate;
@JsonProperty("roles")
private List roles = new ArrayList();
@JsonProperty("slug")
private String slug;
@JsonProperty("url")
private String url;
@JsonIgnore
private Map additionalProperties = new HashMap();
@JsonProperty("_links")
public Links getLinks() {
return Links;
}
@JsonProperty("_links")
public void setLinks(Links Links) {
this.Links = Links;
}
@JsonProperty("avatar_urls")
public AvatarUrls getAvatarUrls() {
return avatarUrls;
}
@JsonProperty("avatar_urls")
public void setAvatarUrls(AvatarUrls avatarUrls) {
this.avatarUrls = avatarUrls;
}
@JsonProperty("capabilities")
public Map getCapabilities() {
return capabilities;
}
@JsonProperty("capabilities")
public void setCapabilities(Map capabilities) {
this.capabilities = capabilities;
}
@JsonProperty("description")
public String getDescription() {
return description;
}
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
@JsonProperty("email")
public String getEmail() {
return email;
}
@JsonProperty("email")
public void setEmail(String email) {
this.email = email;
}
@JsonProperty("first_name")
public String getFirstName() {
return firstName;
}
@JsonProperty("first_name")
public void setFirstName(String firstName) {
this.firstName = firstName;
}
@JsonProperty("id")
public Long getId() {
return id;
}
@JsonProperty("id")
public void setId(Long id) {
this.id = id;
}
@JsonProperty("last_name")
public String getLastName() {
return lastName;
}
@JsonProperty("last_name")
public void setLastName(String lastName) {
this.lastName = lastName;
}
@JsonProperty("link")
public String getLink() {
return link;
}
@JsonProperty("link")
public void setLink(String link) {
this.link = link;
}
@JsonProperty("name")
public String getName() {
return name;
}
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
@JsonProperty("nickname")
public String getNickname() {
return nickname;
}
@JsonProperty("nickname")
public void setNickname(String nickname) {
this.nickname = nickname;
}
@JsonProperty("registered_date")
public String getRegisteredDate() {
return registeredDate;
}
@JsonProperty("registered_date")
public void setRegisteredDate(String registeredDate) {
this.registeredDate = registeredDate;
}
@JsonProperty("roles")
public List getRoles() {
return roles;
}
@JsonProperty("roles")
public void setRoles(List roles) {
this.roles = roles;
}
@JsonProperty("slug")
public String getSlug() {
return slug;
}
@JsonProperty("slug")
public void setSlug(String slug) {
this.slug = slug;
}
@JsonProperty("url")
public String getUrl() {
return url;
}
@JsonProperty("url")
public void setUrl(String url) {
this.url = url;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy