All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.swagger.client.model.TemplateListResponseModel Maven / Gradle / Ivy

/*
 * DocxMerge
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: v1
 * 
 *
 * 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 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.client.model.TemplateModel;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * TemplateListResponseModel
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2018-12-11T02:42:35.962+01:00[Europe/Madrid]")public class TemplateListResponseModel {

  @SerializedName("templates")
  private List templates = null;

  @SerializedName("total")
  private Integer total = null;
  public TemplateListResponseModel templates(List templates) {
    this.templates = templates;
    return this;
  }

  public TemplateListResponseModel addTemplatesItem(TemplateModel templatesItem) {
    if (this.templates == null) {
      this.templates = new ArrayList();
    }
    this.templates.add(templatesItem);
    return this;
  }

  /**
  * Get templates
  * @return templates
  **/
  @Schema(description = "")
  public List getTemplates() {
    return templates;
  }
  public void setTemplates(List templates) {
    this.templates = templates;
  }
  public TemplateListResponseModel total(Integer total) {
    this.total = total;
    return this;
  }

  

  /**
  * Get total
  * @return total
  **/
  @Schema(description = "")
  public Integer getTotal() {
    return total;
  }
  public void setTotal(Integer total) {
    this.total = total;
  }
  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TemplateListResponseModel templateListResponseModel = (TemplateListResponseModel) o;
    return Objects.equals(this.templates, templateListResponseModel.templates) &&
        Objects.equals(this.total, templateListResponseModel.total);
  }

  @Override
  public int hashCode() {
    return java.util.Objects.hash(templates, total);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TemplateListResponseModel {\n");
    
    sb.append("    templates: ").append(toIndentedString(templates)).append("\n");
    sb.append("    total: ").append(toIndentedString(total)).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    ");
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy