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

com.tinypass.client.publisher.model.Result Maven / Gradle / Ivy

There is a newer version: 16.331.0
Show newest version
package com.tinypass.client.publisher.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.tinypass.client.publisher.model.ErrorCode;
import com.tinypass.client.publisher.model.ErrorCodes;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;

public class Result {

    private List errors = new ArrayList();
  

    private ErrorCode error = null;
  

    private ErrorCodes errorCodes = null;
  

    private Boolean ok = null;
  

    private Object orFail = null;
  

    private String errorAsString = null;
  


  public List getErrors() {
    return errors;
  }
  public void setErrors(List errors) {
    this.errors = errors;
  }


  public ErrorCode getError() {
    return error;
  }
  public void setError(ErrorCode error) {
    this.error = error;
  }


  public ErrorCodes getErrorCodes() {
    return errorCodes;
  }
  public void setErrorCodes(ErrorCodes errorCodes) {
    this.errorCodes = errorCodes;
  }


  public Boolean getOk() {
    return ok;
  }
  public void setOk(Boolean ok) {
    this.ok = ok;
  }


  public Object getOrFail() {
    return orFail;
  }
  public void setOrFail(Object orFail) {
    this.orFail = orFail;
  }


  public String getErrorAsString() {
    return errorAsString;
  }
  public void setErrorAsString(String errorAsString) {
    this.errorAsString = errorAsString;
  }


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class Result {\n");
    sb.append("  errors: ").append(errors).append("\n");
    sb.append("  error: ").append(error).append("\n");
    sb.append("  errorCodes: ").append(errorCodes).append("\n");
    sb.append("  ok: ").append(ok).append("\n");
    sb.append("  orFail: ").append(orFail).append("\n");
    sb.append("  errorAsString: ").append(errorAsString).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy