Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* finAPI RESTful Services
* finAPI RESTful Services
*
* OpenAPI spec version: v1.64.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Category data
*/
@ApiModel(description = "Category data")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-05T12:19:21.458Z")
public class Category {
@SerializedName("id")
private Long id = null;
@SerializedName("name")
private String name = null;
@SerializedName("parentId")
private Long parentId = null;
@SerializedName("parentName")
private String parentName = null;
@SerializedName("isCustom")
private Boolean isCustom = null;
@SerializedName("children")
private List children = null;
public Category id(Long id) {
this.id = id;
return this;
}
/**
* Category identifier.<br/><br/>NOTE: Do NOT assume that the identifiers of the global finAPI categories are the same across different finAPI environments. In fact, the identifiers may change whenever a new finAPI version is released, even within the same environment. The identifiers are meant to be used for references within the finAPI services only, but not for hard-coding them in your application. If you need to hard-code the usage of a certain global category within your application, please instead refer to the category name. Also, please make sure to check the 'isCustom' flag, which is false for all global categories (if you are not regarding this flag, you might end up referring to a user-specific category, and not the global category).
* @return id
**/
@ApiModelProperty(example = "378", required = true, value = "Category identifier.
NOTE: Do NOT assume that the identifiers of the global finAPI categories are the same across different finAPI environments. In fact, the identifiers may change whenever a new finAPI version is released, even within the same environment. The identifiers are meant to be used for references within the finAPI services only, but not for hard-coding them in your application. If you need to hard-code the usage of a certain global category within your application, please instead refer to the category name. Also, please make sure to check the 'isCustom' flag, which is false for all global categories (if you are not regarding this flag, you might end up referring to a user-specific category, and not the global category).")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Category name(String name) {
this.name = name;
return this;
}
/**
* Category name
* @return name
**/
@ApiModelProperty(example = "Sport & Fitness", required = true, value = "Category name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Category parentId(Long parentId) {
this.parentId = parentId;
return this;
}
/**
* Identifier of the parent category (if a parent category exists)
* @return parentId
**/
@ApiModelProperty(example = "373", value = "Identifier of the parent category (if a parent category exists)")
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public Category parentName(String parentName) {
this.parentName = parentName;
return this;
}
/**
* Name of the parent category (if a parent category exists)
* @return parentName
**/
@ApiModelProperty(example = "Freizeit, Hobbys & Soziales", value = "Name of the parent category (if a parent category exists)")
public String getParentName() {
return parentName;
}
public void setParentName(String parentName) {
this.parentName = parentName;
}
public Category isCustom(Boolean isCustom) {
this.isCustom = isCustom;
return this;
}
/**
* Whether the category is a finAPI global category (in which case this field will be false), or the category was created by a user (in which case this field will be true)
* @return isCustom
**/
@ApiModelProperty(example = "false", required = true, value = "Whether the category is a finAPI global category (in which case this field will be false), or the category was created by a user (in which case this field will be true)")
public Boolean isIsCustom() {
return isCustom;
}
public void setIsCustom(Boolean isCustom) {
this.isCustom = isCustom;
}
public Category children(List children) {
this.children = children;
return this;
}
public Category addChildrenItem(Long childrenItem) {
if (this.children == null) {
this.children = new ArrayList();
}
this.children.add(childrenItem);
return this;
}
/**
* List of sub-categories identifiers (if any exist)
* @return children
**/
@ApiModelProperty(example = "[1,2,3]", value = "List of sub-categories identifiers (if any exist)")
public List getChildren() {
return children;
}
public void setChildren(List children) {
this.children = children;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Category category = (Category) o;
return Objects.equals(this.id, category.id) &&
Objects.equals(this.name, category.name) &&
Objects.equals(this.parentId, category.parentId) &&
Objects.equals(this.parentName, category.parentName) &&
Objects.equals(this.isCustom, category.isCustom) &&
Objects.equals(this.children, category.children);
}
@Override
public int hashCode() {
return Objects.hash(id, name, parentId, parentName, isCustom, children);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Category {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n");
sb.append(" parentName: ").append(toIndentedString(parentName)).append("\n");
sb.append(" isCustom: ").append(toIndentedString(isCustom)).append("\n");
sb.append(" children: ").append(toIndentedString(children)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}