package com.ikea.shared.cart.model;

import com.google.gson.annotations.SerializedName;
import com.ikea.shared.browse.model.Error;
import java.util.Iterator;
import java.util.List;

public class BaseResponseWithListOfError
{
  private List<Error> errors;
  private boolean mError;

  @SerializedName("statusCode")
  private int mErrorCode;
  private String mErrorMessage;

  @SerializedName("statusReason")
  private boolean mStatusReason;

  @SerializedName("isSuccessful")
  private boolean mSuccessful;

  public int getErrorCode()
  {
    return this.mErrorCode;
  }

  public String getErrorMessage()
  {
    return this.mErrorMessage;
  }

  public List<Error> getErrors()
  {
    return this.errors;
  }

  public boolean isError()
  {
    return this.mError;
  }

  public boolean isStatusCode(int paramInt)
  {
    if ((this.errors != null) && (!this.errors.isEmpty()))
    {
      Iterator localIterator = this.errors.iterator();
      while (localIterator.hasNext())
        if (((Error)localIterator.next()).getStatusCode() == paramInt)
          return true;
    }
    return false;
  }

  public boolean isStatusReason()
  {
    return this.mStatusReason;
  }

  public boolean isSuccessful()
  {
    return this.mSuccessful;
  }

  public void setError(boolean paramBoolean)
  {
    this.mError = paramBoolean;
  }

  public void setErrorCode(int paramInt)
  {
    this.mErrorCode = paramInt;
  }

  public void setErrorMessage(String paramString)
  {
    this.mErrorMessage = paramString;
  }

  public String toString()
  {
    return "BaseResponse [mError=" + this.mError + ", mErrorCode=" + this.mErrorCode + ", mErrorMessage=" + this.mErrorMessage + ", mSuccessful=" + this.mSuccessful + ", errors=" + this.errors + "]";
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.ikea.shared.cart.model.BaseResponseWithListOfError
 * JD-Core Version:    0.6.2
 */