package com.ikea.shared.products.model;

import android.content.Context;
import com.google.gson.annotations.SerializedName;
import com.ikea.shared.AppConfigData;
import com.ikea.shared.AppConfigManager;
import com.ikea.shared.browse.model.AttributeGroupList;
import com.ikea.shared.browse.model.BaseResponse;
import com.ikea.shared.browse.model.CatalogElementRelationList;
import com.ikea.shared.browse.model.ClassUnitKey;
import com.ikea.shared.browse.model.GlobalisationContext;
import com.ikea.shared.config.model.Country;
import com.ikea.shared.stores.model.StockAvailabilityResponse;
import com.ikea.shared.util.Persistable;
import java.io.Serializable;
import java.util.List;

public class RetailItemCommunication extends BaseResponse
  implements Persistable, Serializable
{
  public static final String METER = "METER";
  private static final long serialVersionUID = 1L;
  private String Aisle = "N/A";
  private String AssemblyCode;
  private AttributeGroupList AttributeGroupList;
  private boolean BreathTakingItem;
  private CatalogElementRelationList CatalogElementRelationList;
  private CatalogRefList CatalogRefList;
  private ClassUnitKey ClassUnitKey;

  @SerializedName("DemandList")
  private DemandList DemandList;
  private String DepartmentName = "Unknown";
  private String DesignerNameComm;
  private GPRCommSelectionCriteriaSelectionList GPRCommSelectionCriteriaSelectionList;
  private String GPRItemOrigin;
  private GlobalisationContext GlobalisationContext;
  private String ItemMeasureReferenceTextImperial;
  private String ItemMeasureReferenceTextMetric;
  private String ItemNo;
  private String ItemNoGlobal;
  private String ItemNumberOfPackages;
  private String ItemPriceUnitFactorImperial;
  private String ItemPriceUnitFactorMetric;
  private String ItemType;
  private String ItemUnitCode;
  private String Location = "N/A";
  private String NewsType;
  private boolean OnlineSellable;
  private String PresentationGroupCodeEn;
  private String PriceUnitTextImperial;
  private String PriceUnitTextImperialEn;
  private String PriceUnitTextMetric;
  private String PriceUnitTextMetricEn;
  private String ProductName;
  private String ProductTypeName;
  private String ProductTypeNameGlobal;
  private String ProoductNameGlobal;
  private RetailItemCareInstructionList RetailItemCareInstructionList;
  private RetailItemCommAttachmentList RetailItemCommAttachmentList;
  private RetailItemCommChildList RetailItemCommChildList;
  private RetailItemCommMeasureList RetailItemCommMeasureList;
  private RetailItemCommPackageMeasureList RetailItemCommPackageMeasureList;
  private RetailItemCommPriceList RetailItemCommPriceList;
  private RetailItemCustomerBenefitList RetailItemCustomerBenefitList;
  private RetailItemCustomerEnvironmentList RetailItemCustomerEnvironmentList;
  private RetailItemCustomerMaterialList RetailItemCustomerMaterialList;

  @SerializedName("RetailItemFeeList")
  private RetailItemFeeList RetailItemFeeList;
  private RetailItemGoodToKnowList RetailItemGoodToKnowList;
  private RetailItemImageList RetailItemImageList;
  private RetailItemLongBenefitList RetailItemLongBenefitList;
  private RetailItemTechnicalInformationGroupList RetailItemTechnicalInformationGroupList;
  private String StoreDepartmentName = "Unknown";
  private String UnitPriceGroupCode;
  private String ValidDesignText;
  private SL_ITEM_TYPE ViewType = SL_ITEM_TYPE.RETAILITEM;
  private Integer discontinuedProducts = Integer.valueOf(0);
  private DisplayPriceInfo displayPriceInfo;
  private boolean isCollected = false;
  private long lastUpDatedTime;

  @SerializedName("GPRCommSelectionCriteriaList")
  private GPRCommSelectionCriteriaList mGPRCommSelectionCriteriaList;
  private String mGprOrigin;
  private Quantity mQuantity;

  @SerializedName("StockAvailability")
  private StockAvailabilityResponse mStockAvailability;
  private long mTimeAdded;
  private List<RetailItemCommunication> motherReferences;
  private Integer setUpdatedPriceProducts = Integer.valueOf(0);

  public boolean equals(Object paramObject)
  {
    if (paramObject != null)
      return this.ItemNo.equals(((RetailItemCommunication)paramObject).ItemNo);
    return false;
  }

  public String getAisle()
  {
    return this.Aisle;
  }

  public String getAssemblyCode()
  {
    return this.AssemblyCode;
  }

  public AttributeGroupList getAttributeGroupList()
  {
    return this.AttributeGroupList;
  }

  public boolean getBreathTakingItem()
  {
    return this.BreathTakingItem;
  }

  public CatalogElementRelationList getCatalogElementRelationList()
  {
    return this.CatalogElementRelationList;
  }

  public CatalogRefList getCatalogRefList()
  {
    return this.CatalogRefList;
  }

  public ClassUnitKey getClassUnitKey()
  {
    return this.ClassUnitKey;
  }

  public String getColor(String paramString)
  {
    GPRCommSelectionCriteriaList localGPRCommSelectionCriteriaList = this.mGPRCommSelectionCriteriaList;
    List localList1 = null;
    int k;
    if (localGPRCommSelectionCriteriaList != null)
    {
      List localList3 = this.mGPRCommSelectionCriteriaList.getGPRCommSelectionCriteria();
      localList1 = null;
      if (localList3 != null)
      {
        boolean bool = localList3.isEmpty();
        localList1 = null;
        if (!bool)
        {
          k = 0;
          int m = localList3.size();
          localList1 = null;
          if (k < m)
          {
            if ((!((GPRCommSelectionCriteria)localList3.get(k)).getSelectionCriteriaCode().equalsIgnoreCase(paramString)) || (((GPRCommSelectionCriteria)localList3.get(k)).getGPRCommSelectionCriteriaValueList() == null))
              break label297;
            localList1 = ((GPRCommSelectionCriteria)localList3.get(k)).getGPRCommSelectionCriteriaValueList().getGPRCommSelectionCriteriaValueList();
          }
        }
      }
    }
    if ((localList1 != null) && (!localList1.isEmpty()))
      label297: label309: for (int i = 0; ; i++)
      {
        if (i >= localList1.size())
          break label315;
        if ((localList1.get(i) != null) && (((GPRCommSelectionCriteriaValue)localList1.get(i)).getItemRefList() != null) && (((GPRCommSelectionCriteriaValue)localList1.get(i)).getItemRefList().getItemRefList() != null) && (!((GPRCommSelectionCriteriaValue)localList1.get(i)).getItemRefList().getItemRefList().isEmpty()))
        {
          List localList2 = ((GPRCommSelectionCriteriaValue)localList1.get(i)).getItemRefList().getItemRefList();
          for (int j = 0; ; j++)
          {
            if (j >= localList2.size())
              break label309;
            if (((ItemRef)localList2.get(j)).getItemNo().equals(this.ItemNo))
            {
              return ((GPRCommSelectionCriteriaValue)localList1.get(i)).getSelectionCriteriaValue();
              k++;
              break;
            }
          }
        }
      }
    label315: return "";
  }

  public DemandList getDemandList()
  {
    return this.DemandList;
  }

  public String getDepartmentName()
  {
    return this.DepartmentName;
  }

  public String getDesignerNameComm()
  {
    return this.DesignerNameComm;
  }

  public int getDiscontinuedProducts()
  {
    return this.discontinuedProducts.intValue();
  }

  public DisplayPriceInfo getDisplayPriceInfo()
  {
    return this.displayPriceInfo;
  }

  public GPRCommSelectionCriteriaList getGPRCommSelectionCriteriaList()
  {
    return this.mGPRCommSelectionCriteriaList;
  }

  public GPRCommSelectionCriteriaSelectionList getGPRCommSelectionCriteriaSelectionList()
  {
    return this.GPRCommSelectionCriteriaSelectionList;
  }

  public String getGPRItemOrigin()
  {
    return this.GPRItemOrigin;
  }

  public GlobalisationContext getGlobalisationContext()
  {
    return this.GlobalisationContext;
  }

  public String getGprOrigin()
  {
    return this.mGprOrigin;
  }

  public String getId()
  {
    return this.ItemNo;
  }

  public String getItemMeasureReferenceTextImperial()
  {
    return this.ItemMeasureReferenceTextImperial;
  }

  public String getItemMeasureReferenceTextMetric()
  {
    return this.ItemMeasureReferenceTextMetric;
  }

  public String getItemNo()
  {
    return this.ItemNo;
  }

  public String getItemNoGlobal()
  {
    return this.ItemNoGlobal;
  }

  public String getItemNumberOfPackages()
  {
    return this.ItemNumberOfPackages;
  }

  public String getItemPriceUnitFactorImperial()
  {
    return this.ItemPriceUnitFactorImperial;
  }

  public String getItemPriceUnitFactorMetric()
  {
    return this.ItemPriceUnitFactorMetric;
  }

  public String getItemType()
  {
    return this.ItemType;
  }

  public String getItemUnitCode()
  {
    return this.ItemUnitCode;
  }

  public long getLastUpDatedTime()
  {
    return this.lastUpDatedTime;
  }

  public String getLocation()
  {
    return this.Location;
  }

  public String getMeasurement(Context paramContext)
  {
    if ((AppConfigManager.i(paramContext).getAppConfigData() != null) && (AppConfigManager.i(paramContext).getAppConfigData().getConfig() != null) && (AppConfigManager.i(paramContext).getAppConfigData().getConfig().isMetric()))
      return this.ItemMeasureReferenceTextMetric;
    return this.ItemMeasureReferenceTextImperial;
  }

  public List<RetailItemCommunication> getMotherReferences()
  {
    return this.motherReferences;
  }

  public String getNewsType()
  {
    return this.NewsType;
  }

  public String getPresentationGroupCodeEn()
  {
    return this.PresentationGroupCodeEn;
  }

  public float getPrice()
  {
    RetailItemCommPriceList localRetailItemCommPriceList = getRetailItemCommPriceList();
    float f = 0.0F;
    if (localRetailItemCommPriceList != null)
    {
      List localList = getRetailItemCommPriceList().getRetailItemCommPrice();
      f = 0.0F;
      if (localList != null)
      {
        boolean bool = getRetailItemCommPriceList().getRetailItemCommPrice().isEmpty();
        f = 0.0F;
        if (!bool)
          f = ((RetailItemCommPrice)getRetailItemCommPriceList().getRetailItemCommPrice().get(0)).getPriceExclTax();
      }
    }
    return f;
  }

  public String getPriceUnitTextImperial()
  {
    return this.PriceUnitTextImperial;
  }

  public String getPriceUnitTextImperialEn()
  {
    return this.PriceUnitTextImperialEn;
  }

  public String getPriceUnitTextMetric()
  {
    return this.PriceUnitTextMetric;
  }

  public String getPriceUnitTextMetricEn()
  {
    return this.PriceUnitTextMetricEn;
  }

  public String getProductName()
  {
    return this.ProductName;
  }

  public String getProductTypeName()
  {
    return this.ProductTypeName;
  }

  public String getProductTypeNameGlobal()
  {
    return this.ProductTypeNameGlobal;
  }

  public String getProoductNameGlobal()
  {
    return this.ProoductNameGlobal;
  }

  public Quantity getQuantity()
  {
    return this.mQuantity;
  }

  public RetailItemCareInstructionList getRetailItemCareInstructionList()
  {
    return this.RetailItemCareInstructionList;
  }

  public RetailItemCommAttachmentList getRetailItemCommAttachmentList()
  {
    return this.RetailItemCommAttachmentList;
  }

  public RetailItemCommChildList getRetailItemCommChildList()
  {
    return this.RetailItemCommChildList;
  }

  public RetailItemCommMeasureList getRetailItemCommMeasureList()
  {
    return this.RetailItemCommMeasureList;
  }

  public RetailItemCommPackageMeasureList getRetailItemCommPackageMeasureList()
  {
    return this.RetailItemCommPackageMeasureList;
  }

  public RetailItemCommPriceList getRetailItemCommPriceList()
  {
    return this.RetailItemCommPriceList;
  }

  public RetailItemCustomerBenefitList getRetailItemCustomerBenefitList()
  {
    return this.RetailItemCustomerBenefitList;
  }

  public RetailItemCustomerEnvironmentList getRetailItemCustomerEnvironmentList()
  {
    return this.RetailItemCustomerEnvironmentList;
  }

  public RetailItemCustomerMaterialList getRetailItemCustomerMaterialList()
  {
    return this.RetailItemCustomerMaterialList;
  }

  public RetailItemFeeList getRetailItemFeeList()
  {
    return this.RetailItemFeeList;
  }

  public RetailItemGoodToKnowList getRetailItemGoodToKnowList()
  {
    return this.RetailItemGoodToKnowList;
  }

  public RetailItemImageList getRetailItemImageList()
  {
    return this.RetailItemImageList;
  }

  public RetailItemLongBenefitList getRetailItemLongBenefitList()
  {
    return this.RetailItemLongBenefitList;
  }

  public RetailItemTechnicalInformationGroupList getRetailItemTechnicalInformationGroupList()
  {
    return this.RetailItemTechnicalInformationGroupList;
  }

  public StockAvailabilityResponse getStockAvailability()
  {
    return this.mStockAvailability;
  }

  public String getStoreDepartmentName()
  {
    return this.StoreDepartmentName;
  }

  public long getTimeAdded()
  {
    return this.mTimeAdded;
  }

  public String getUnitPriceGroupCode()
  {
    return this.UnitPriceGroupCode;
  }

  public int getUpdatedPriceProducts()
  {
    return this.setUpdatedPriceProducts.intValue();
  }

  public String getValidDesignText()
  {
    return this.ValidDesignText;
  }

  public float getVat()
  {
    RetailItemCommPriceList localRetailItemCommPriceList = getRetailItemCommPriceList();
    float f = 0.0F;
    if (localRetailItemCommPriceList != null)
    {
      List localList = getRetailItemCommPriceList().getRetailItemCommPrice();
      f = 0.0F;
      if (localList != null)
      {
        boolean bool = getRetailItemCommPriceList().getRetailItemCommPrice().isEmpty();
        f = 0.0F;
        if (!bool)
          f = ((RetailItemCommPrice)getRetailItemCommPriceList().getRetailItemCommPrice().get(0)).getPrice() - ((RetailItemCommPrice)getRetailItemCommPriceList().getRetailItemCommPrice().get(0)).getPriceExclTax();
      }
    }
    return f;
  }

  public SL_ITEM_TYPE getViewType()
  {
    return this.ViewType;
  }

  public String getmGprOrigin()
  {
    return this.mGprOrigin;
  }

  public long getmTimeAdded()
  {
    return this.mTimeAdded;
  }

  public boolean isCollected()
  {
    return this.isCollected;
  }

  public boolean isFabric()
  {
    return (this.ItemUnitCode != null) && (this.ItemUnitCode.equals("METER"));
  }

  public boolean isOnlineSellable()
  {
    return this.OnlineSellable;
  }

  public void setAisle(String paramString)
  {
    this.Aisle = paramString;
  }

  public void setBreathTakingItem(boolean paramBoolean)
  {
    this.BreathTakingItem = paramBoolean;
  }

  public void setCollected(boolean paramBoolean)
  {
    this.isCollected = paramBoolean;
  }

  public void setDiscontinuedProducts(int paramInt)
  {
    this.discontinuedProducts = Integer.valueOf(paramInt);
  }

  public void setDisplayPriceInfo(DisplayPriceInfo paramDisplayPriceInfo)
  {
    this.displayPriceInfo = paramDisplayPriceInfo;
  }

  public void setGPRCommSelectionCriteriaSelectionList(GPRCommSelectionCriteriaSelectionList paramGPRCommSelectionCriteriaSelectionList)
  {
    this.GPRCommSelectionCriteriaSelectionList = paramGPRCommSelectionCriteriaSelectionList;
  }

  public void setGprOrigin(String paramString)
  {
    this.mGprOrigin = paramString;
  }

  public void setItemNo(String paramString)
  {
    this.ItemNo = paramString;
  }

  public void setLastUpDatedTime(long paramLong)
  {
    this.lastUpDatedTime = paramLong;
  }

  public void setLocation(String paramString)
  {
    this.Location = paramString;
  }

  public void setQuantity(Quantity paramQuantity)
  {
    this.mQuantity = paramQuantity;
  }

  public void setRetailItemTechnicalInformationGroupList(RetailItemTechnicalInformationGroupList paramRetailItemTechnicalInformationGroupList)
  {
    this.RetailItemTechnicalInformationGroupList = paramRetailItemTechnicalInformationGroupList;
  }

  public void setStockAvailability(StockAvailabilityResponse paramStockAvailabilityResponse)
  {
    this.mStockAvailability = paramStockAvailabilityResponse;
  }

  public void setStoreDepartmentName(String paramString)
  {
    this.StoreDepartmentName = paramString;
  }

  public void setTimeAdded(long paramLong)
  {
    this.mTimeAdded = paramLong;
  }

  public void setUpdatedPriceProducts(int paramInt)
  {
    this.setUpdatedPriceProducts = Integer.valueOf(paramInt);
  }

  public void setViewType(SL_ITEM_TYPE paramSL_ITEM_TYPE)
  {
    this.ViewType = paramSL_ITEM_TYPE;
  }

  public String toString()
  {
    return "RetailItemCommunication [ItemNo=" + this.ItemNo + ", ItemNoGlobal=" + this.ItemNoGlobal + ", ItemType=" + this.ItemType + ", ProductName=" + this.ProductName + ", ProoductNameGlobal=" + this.ProoductNameGlobal + ", ProductTypeName=" + this.ProductTypeName + ", ProductTypeNameGlobal=" + this.ProductTypeNameGlobal + ", ValidDesignText=" + this.ValidDesignText + ", NewsType=" + this.NewsType + ", OnlineSellable=" + this.OnlineSellable + ", BreathTakingItem=" + this.BreathTakingItem + ", ItemNumberOfPackages=" + this.ItemNumberOfPackages + ", AssemblyCode=" + this.AssemblyCode + ", PresentationGroupCodeEn=" + this.PresentationGroupCodeEn + ", DesignerNameComm=" + this.DesignerNameComm + ", PriceUnitTextMetric=" + this.PriceUnitTextMetric + ", PriceUnitTextImperial=" + this.PriceUnitTextImperial + ", ItemPriceUnitFactorMetric=" + this.ItemPriceUnitFactorMetric + ", ItemPriceUnitFactorImperial=" + this.ItemPriceUnitFactorImperial + ", GlobalisationContext=" + this.GlobalisationContext + ", ClassUnitKey=" + this.ClassUnitKey + ", RetailItemCommPriceList=" + this.RetailItemCommPriceList + ", RetailItemFeeList=" + this.RetailItemFeeList + ", RetailItemImageList=" + this.RetailItemImageList + ", GPRCommSelectionCriteriaSelectionList=" + "" + ", AttributeGroupList=" + this.AttributeGroupList + ", RetailItemCareInstructionList=" + this.RetailItemCareInstructionList + ", RetailItemCustomerBenefitList=" + this.RetailItemCustomerBenefitList + ", RetailItemCustomerEnvironmentList=" + this.RetailItemCustomerEnvironmentList + ", RetailItemGoodToKnowList=" + this.RetailItemGoodToKnowList + ", RetailItemCustomerMaterialList=" + this.RetailItemCustomerMaterialList + ", RetailItemLongBenefitList=" + this.RetailItemLongBenefitList + ", RetailItemCommPackageMeasureList=" + this.RetailItemCommPackageMeasureList + ", RetailItemCommMeasureList=" + this.RetailItemCommMeasureList + ", DemandList=" + "" + ", RetailItemCommChildList=" + this.RetailItemCommChildList + ", CatalogRefList=" + this.CatalogRefList + ", PriceUnitTextMetricEn=" + this.PriceUnitTextMetricEn + ", PriceUnitTextImperialEn=" + this.PriceUnitTextImperialEn + ", RetailItemCommAttachmentList=" + "" + ", ItemMeasureReferenceTextMetric=" + this.ItemMeasureReferenceTextMetric + ", ItemMeasureReferenceTextImperial=" + this.ItemMeasureReferenceTextImperial + ", CatalogElementRelationList=" + this.CatalogElementRelationList + ", UnitPriceGroupCode=" + this.UnitPriceGroupCode + ", ItemUnitCode=" + this.ItemUnitCode + ", GPRItemOrigin=" + this.GPRItemOrigin + ", mGPRCommSelectionCriteriaList=" + this.mGPRCommSelectionCriteriaList + ", mStockAvailability=" + this.mStockAvailability + ", mQuantity=" + this.mQuantity + ", mTimeAdded=" + this.mTimeAdded + ", mGprOrigin=" + this.mGprOrigin + "]";
  }

  public static enum SL_ITEM_TYPE
  {
    static
    {
      CHILDSPR = new SL_ITEM_TYPE("CHILDSPR", 2);
      ALERTITEM = new SL_ITEM_TYPE("ALERTITEM", 3);
      STOREITEM = new SL_ITEM_TYPE("STOREITEM", 4);
      EMPTYLIST = new SL_ITEM_TYPE("EMPTYLIST", 5);
      SL_ITEM_TYPE[] arrayOfSL_ITEM_TYPE = new SL_ITEM_TYPE[6];
      arrayOfSL_ITEM_TYPE[0] = DEPARTMENT;
      arrayOfSL_ITEM_TYPE[1] = RETAILITEM;
      arrayOfSL_ITEM_TYPE[2] = CHILDSPR;
      arrayOfSL_ITEM_TYPE[3] = ALERTITEM;
      arrayOfSL_ITEM_TYPE[4] = STOREITEM;
      arrayOfSL_ITEM_TYPE[5] = EMPTYLIST;
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.ikea.shared.products.model.RetailItemCommunication
 * JD-Core Version:    0.6.2
 */