private void a(AddToBagInputEntity addtobaginputentity)
 {
     Object obj;
     JSONArray jsonarray;
     if (addtobaginputentity.getvDataType() != null)
     {
         l = addtobaginputentity.getvDataType();
     } else
     if (addtobaginputentity.getProductType() != null)
     {
         l = addtobaginputentity.getProductType();
     }
     jsonarray = new JSONArray();
     obj = new JSONArray();
     if (b.getString(0x7f070348).equalsIgnoreCase(l))
     {
         c(addtobaginputentity, jsonarray);
     } else
     if (b.getString(0x7f070297).equalsIgnoreCase(l))
     {
         b(addtobaginputentity, jsonarray, ((JSONArray) (obj)));
     } else
     if (b.getString(0x7f070223).equalsIgnoreCase(l) || b.getString(0x7f0701fb).equalsIgnoreCase(l) || b.getString(0x7f070284).equalsIgnoreCase(l))
     {
         a(addtobaginputentity, jsonarray, ((JSONArray) (obj)));
     } else
     if (b.getString(0x7f0701f3).equalsIgnoreCase(l))
     {
         b(addtobaginputentity, jsonarray);
     } else
     {
         a(addtobaginputentity, jsonarray);
     }
     obj = new JSONObject();
     try
     {
         ((JSONObject) (obj)).put("items", jsonarray);
     }
     catch (JSONException jsonexception)
     {
         jsonexception.printStackTrace();
     }
     n = addtobaginputentity.getQuantity();
     addtobaginputentity = new a(b);
     addtobaginputentity.a(this);
     addtobaginputentity.a(((JSONObject) (obj)));
 }