/*     */   public String refresh(ArrayList<String> list1) throws TembooException, IOException, TwitterException {
/* 128 */     getCreds();
/* 129 */     this.session = new TembooSession("phalax4", "myFirstApp", "231248aa-6da1-4f21-8");
/*     */ 
/* 131 */     HomeTimeline homeTimelineChoreo = new HomeTimeline(this.session);
/* 132 */     HomeTimeline.HomeTimelineInputSet homeTimelineInputs = homeTimelineChoreo.newInputSet();
/*     */ 
/* 134 */     homeTimelineInputs.set_AccessToken((String)list1.get(0));
/* 135 */     homeTimelineInputs.set_AccessTokenSecret((String)list1.get(1));
/* 136 */     homeTimelineInputs.set_ConsumerSecret("EqgkdjEPuhP4KyVm3PEV926YuDrPcZAG249FxwXE9Q");
/* 137 */     homeTimelineInputs.set_ConsumerKey("hyL303lpgZpSt6cMmilBw");
/*     */ 
/* 139 */     HomeTimeline.HomeTimelineResultSet homeTimelineResults = homeTimelineChoreo.execute(homeTimelineInputs);
/*     */ 
/* 148 */     JsonParser jp = new JsonParser();
/* 149 */     JsonElement root = jp.parse(homeTimelineResults.get_Response());
/*     */ 
/* 151 */     JsonArray statuses = root.getAsJsonArray();
/*     */ 
/* 155 */     String thread = "";
/*     */ 
/* 157 */     for (int i = 0; i < statuses.size(); i++) {
/* 158 */       JsonObject status = statuses.get(i).getAsJsonObject();
/*     */ 
/* 160 */       String text = status.get("text").getAsString();
/* 161 */       String screen_name = status.get("user").getAsJsonObject().get("name").getAsString();
/*     */ 
/* 163 */       JsonArray urls = status.get("entities").getAsJsonObject().get("urls").getAsJsonArray();
/*     */ 
/* 165 */       this.au = urls.toString();
/*     */ 
/* 167 */       this.var1 = (this.au.indexOf(":") + 1);
/* 168 */       this.var2 = (this.au.indexOf(":", this.var1) + 1);
/* 169 */       this.var3 = (this.au.indexOf(":", this.var2) + 2);
/* 170 */       this.var4 = (this.au.indexOf(",", this.var3) - 1);
/*     */ 
/* 172 */       if (this.au.charAt(this.var1) == ' ')
/* 173 */         this.sub = " ";
/* 174 */       else if ((this.var3 >= 0) && (this.var4 >= 0)) {
/* 175 */         this.sub = this.au.substring(this.var3, this.var4);
/*     */       }
/*     */       else
/*     */       {
/* 179 */         this.sub = "";
/*     */       }
/*     */ 
/* 183 */       thread = thread + screen_name + "\n" + text + "\n" + this.sub + "\n\n";
/*     */     }
/*     */ 
/* 187 */     return thread;
/*     */   }