protected String i() {
   JSONArray localJSONArray = new JSONArray();
   Iterator localIterator = this.a.iterator();
   while (localIterator.hasNext()) {
     GraphApiMethod localGraphApiMethod = (GraphApiMethod) localIterator.next();
     JSONObject localJSONObject = new JSONObject();
     try {
       localJSONObject.put("method", localGraphApiMethod.k);
       if (localGraphApiMethod.k.equals("POST")) {
         localJSONObject.put("relative_url", localGraphApiMethod.a(false, false));
         localJSONObject.put("body", localGraphApiMethod.e().toString());
         String str1 = localGraphApiMethod.h();
         if (!StringUtils.c(str1)) localJSONObject.put("depends_on", str1);
         String str2 = localGraphApiMethod.g();
         if (!StringUtils.c(str2)) localJSONObject.put("name", str2);
         localJSONObject.put("omit_response_on_success", false);
         localJSONArray.put(localJSONObject);
       }
     } catch (JSONException localJSONException) {
       while (true) {
         Log.a(g, "error while constructing the batch param", localJSONException);
         break;
         localJSONObject.put("relative_url", localGraphApiMethod.a(false, true));
       }
     } catch (UnsupportedEncodingException localUnsupportedEncodingException) {
       Log.a(g, "error encoding something for the batch param", localUnsupportedEncodingException);
     }
   }
   return localJSONArray.toString();
 }
 public void a(Products paramProducts) {
   try {
     ArrayList localArrayList = (ArrayList) ProductsManager.c(this.c.a).get(this.a);
     ProductsManager.c(this.c.a).remove(this.a);
     paramProducts.a(ProductsManager.f(this.c.a), this.b, ProductsManager.e(this.c.a));
     Iterator localIterator = localArrayList.iterator();
     while (localIterator.hasNext())
       ((ProductsManager.GraphQLProductsRequestListener) localIterator.next()).a(paramProducts);
   } catch (Exception localException) {
     Log.b("Couldn't parse products request", localException);
   }
 }
 public Boolean a(
     NotificationsChangeSettingsParams paramNotificationsChangeSettingsParams,
     ApiResponse paramApiResponse) {
   Preconditions.checkNotNull(paramApiResponse);
   paramApiResponse.g();
   boolean bool = paramApiResponse.c().asBoolean();
   if ((bool) && (paramNotificationsChangeSettingsParams != null)) ;
   for (Boolean localBoolean = Boolean.valueOf(bool); ; localBoolean = Boolean.valueOf(bool)) {
     return localBoolean;
     Log.a(
         NotificationsChangeSettingsMethod.class.getSimpleName(),
         "Failed to change notification settings");
   }
 }