/*     */   public String refresh(ArrayList<String> list1) throws TembooException
/*     */   {
/* 147 */     String f = "";
/*     */ 
/* 149 */     NewsFeed newsFeedChoreo = new NewsFeed(this.session);
/* 150 */     NewsFeed.NewsFeedInputSet newsFeedInputs = newsFeedChoreo.newInputSet();
/*     */ 
/* 154 */     newsFeedInputs.set_AccessToken((String)list1.get(0));
/*     */ 
/* 156 */     NewsFeed.NewsFeedResultSet newsFeedResults = newsFeedChoreo.execute(newsFeedInputs);
/* 157 */     String json = newsFeedResults.get_Response();
/*     */ 
/* 159 */     JsonParser jp = new JsonParser();
/* 160 */     JsonElement root = jp.parse(json);
/* 161 */     JsonObject rootobj = root.getAsJsonObject();
/*     */ 
/* 163 */     JsonArray feed = rootobj.get("data").getAsJsonArray();
/*     */ 
/* 165 */     for (int i = 0; i < feed.size(); i++) {
/* 166 */       String name = feed.get(i).getAsJsonObject().get("from").getAsJsonObject().get("name").getAsString();
/* 167 */       JsonElement msg = feed.get(i).getAsJsonObject().get("message");
/*     */ 
/* 169 */       String pict = "";
/* 170 */       if (msg != null)
/*     */       {
/* 174 */         JsonElement pic = feed.get(i).getAsJsonObject().get("picture");
/*     */ 
/* 176 */         if (pic != null) {
/* 177 */           pict = pic.getAsString();
/* 178 */           f = f + name + "\n" + msg + "\n" + pict + "\n\n";
/*     */         }
/*     */         else {
/* 181 */           f = f + name + "\n" + msg + "\n\n";
/*     */         }
/*     */       }
/*     */     }
/*     */ 
/* 186 */     return f;
/*     */   }