package com.ikea.shared.user.model;

import com.google.gson.annotations.SerializedName;
import com.ikea.shared.browse.model.BaseResponse;

public class AuthResponse extends BaseResponse
{

  @SerializedName("FamilyCard")
  private FamilyCard FamilyCard;

  @SerializedName("Profile")
  private Profile Profile;

  @SerializedName("AuthenticationResult")
  private AuthenticationResult mAuthenticationResult;

  @SerializedName("IRWStats_familyCard")
  private String mEncFamilyCardID;

  @SerializedName("responseHeaders")
  private ResponseHeaders mResponseHeaders;

  public AuthenticationResult getAuthenticationResult()
  {
    return this.mAuthenticationResult;
  }

  public String getEncFamilyCardID()
  {
    return this.mEncFamilyCardID;
  }

  public FamilyCard getFamilyCard()
  {
    return this.FamilyCard;
  }

  public Profile getProfile()
  {
    return this.Profile;
  }

  public ResponseHeaders getResponseHeaders()
  {
    return this.mResponseHeaders;
  }

  public boolean isAuthSuccessful()
  {
    return (this.mAuthenticationResult != null) && (this.mAuthenticationResult.getAuthReason() != null) && (this.mAuthenticationResult.getAuthReason().getReasonCode() != null) && (this.mAuthenticationResult.getAuthReason().getReasonCode().trim().equalsIgnoreCase("1001"));
  }

  public void setProfile(Profile paramProfile)
  {
    this.Profile = paramProfile;
  }

  public String toString()
  {
    return "AuthResponse [mResponseHeaders=" + this.mResponseHeaders + ", mAuthenticationResult=" + this.mAuthenticationResult + ", Profile=" + this.Profile + ", FamilyCard=" + this.FamilyCard + ", mEncFamilyCardID=" + this.mEncFamilyCardID + "]";
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.ikea.shared.user.model.AuthResponse
 * JD-Core Version:    0.6.2
 */