package com.tmitim.twittercli;

import java.util.ArrayList;
import java.util.List;

import com.github.rvesse.airline.annotations.Command;

import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;

/**
 * Get timeline
 */
@Command(name = "timeline", description = "Get your timeline")
public class TimeLine implements Runnable {

	public void run() {

		System.out.println("Pulling your timeline.");
		Twitter twitter = TwitterFactory.getSingleton();

		List<Status> statuses = new ArrayList<>();
		try {
			statuses = twitter.getHomeTimeline();
		} catch (TwitterException e) {
			e.printStackTrace();
		}
		for (Status status : statuses) {
			System.out.println(status.getUser().getName() + " (@" + status.getUser().getScreenName() + "): ");
			System.out.println(status.getText());
			System.out.println(status.getCreatedAt());
			System.out.println("");
		}
	}
}
@@ -881,24 +881,192 @@
 eatedAt());%0A
+%09%09%09System.out.println(%0A%09%09%09%09String.format(%0A%09%09%09%09%09%22ID: %25d, RT: %25d, %3C3: %25d%22,%0A%09%09%09%09%09status.getId(),%0A%09%09%09%09%09status.getRetweetCount(),%0A%09%09%09%09%09status.getFavoriteCount()%0A%09%09%09%09)%0A%09%09%09);%0A
 %09%09%09System.ou

Add id, favorite + rt count to timeline