Exemple #1
0
 public static Pair<String, ArrayList<Moment>> m8921a(@NonNull JSONObject jSONObject) {
   ArrayList arrayList = new ArrayList();
   String str = BuildConfig.FLAVOR;
   try {
     String optString = jSONObject.optString("last_activity_date");
     JSONArray jSONArray = jSONObject.getJSONArray("moments");
     for (int i = 0; i < jSONArray.length(); i++) {
       arrayList.add(C2975d.m8924b(jSONArray.getJSONObject(i)));
     }
     return new Pair(optString, arrayList);
   } catch (Exception e) {
     C3095y.m9479c(e.toString());
     return null;
   }
 }
Exemple #2
0
 public static Pair<String, ArrayList<MomentLike>> m8922a(
     @NonNull JSONObject jSONObject, @NonNull Map<String, Moment> map) {
   try {
     ArrayList arrayList = new ArrayList();
     String optString = jSONObject.optString("last_activity_date");
     JSONArray jSONArray = jSONObject.getJSONArray("likes");
     DateFormat b = C3070i.m9369b();
     for (int i = 0; i < jSONArray.length(); i++) {
       arrayList.add(C2975d.m8923a(map, b, jSONArray.getJSONObject(i)));
     }
     return new Pair(optString, arrayList);
   } catch (Exception e) {
     C3095y.m9479c(BuildConfig.FLAVOR + e);
     return null;
   }
 }