From d3ba093cbedf4105cb8988a766dd165f718e149d Mon Sep 17 00:00:00 2001 From: bspeice Date: Mon, 14 Oct 2013 13:40:42 -0400 Subject: [PATCH] Add some documentation on fetching alerts from Twitter. --- src/com/uncc/gameday/alerts/AlertFetcher.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/uncc/gameday/alerts/AlertFetcher.java b/src/com/uncc/gameday/alerts/AlertFetcher.java index ebd862f..e107a65 100644 --- a/src/com/uncc/gameday/alerts/AlertFetcher.java +++ b/src/com/uncc/gameday/alerts/AlertFetcher.java @@ -43,6 +43,7 @@ public class AlertFetcher { private void fetchOrganizationAlerts(Context ctx) throws TwitterException { // Process fetching organization alerts (alerts retweeted by us) + // Will not necessarily fetch `maxTweets` tweets. String handle = ctx.getString(R.string.gameday_handle); Twitter twitter = TwitterFactory.getSingleton(); List statuses = twitter.getUserTimeline(handle, new Paging(1, maxTweets)); @@ -59,6 +60,7 @@ public class AlertFetcher { private void fetchUniversityAlerts(Context ctx) throws TwitterException { // Process fetching university alerts + // Guaranteed to get `maxTweets` tweets String handle = ctx.getString(R.string.university_handle); Twitter twitter = TwitterFactory.getSingleton(); List statuses = twitter.getUserTimeline(handle, new Paging(1, maxTweets)); @@ -68,6 +70,7 @@ public class AlertFetcher { private void fetchGamedayAlerts(Context ctx) throws TwitterException { // Process fetching alerts generated by staff of UNCCGameDay + // Not guaranteed to get `maxTweets` tweets String handle = ctx.getString(R.string.gameday_handle); Twitter twitter = TwitterFactory.getSingleton(); List statuses = twitter.getUserTimeline(handle, new Paging(1, maxTweets));