mirror of
https://github.com/bspeice/UNCCGameDay
synced 2025-01-09 23:40:04 -05:00
Add some documentation on fetching alerts from Twitter.
This commit is contained in:
parent
caf9da1e58
commit
d3ba093cbe
@ -43,6 +43,7 @@ public class AlertFetcher {
|
|||||||
|
|
||||||
private void fetchOrganizationAlerts(Context ctx) throws TwitterException {
|
private void fetchOrganizationAlerts(Context ctx) throws TwitterException {
|
||||||
// Process fetching organization alerts (alerts retweeted by us)
|
// Process fetching organization alerts (alerts retweeted by us)
|
||||||
|
// Will not necessarily fetch `maxTweets` tweets.
|
||||||
String handle = ctx.getString(R.string.gameday_handle);
|
String handle = ctx.getString(R.string.gameday_handle);
|
||||||
Twitter twitter = TwitterFactory.getSingleton();
|
Twitter twitter = TwitterFactory.getSingleton();
|
||||||
List<Status> statuses = twitter.getUserTimeline(handle, new Paging(1, maxTweets));
|
List<Status> statuses = twitter.getUserTimeline(handle, new Paging(1, maxTweets));
|
||||||
@ -59,6 +60,7 @@ public class AlertFetcher {
|
|||||||
|
|
||||||
private void fetchUniversityAlerts(Context ctx) throws TwitterException {
|
private void fetchUniversityAlerts(Context ctx) throws TwitterException {
|
||||||
// Process fetching university alerts
|
// Process fetching university alerts
|
||||||
|
// Guaranteed to get `maxTweets` tweets
|
||||||
String handle = ctx.getString(R.string.university_handle);
|
String handle = ctx.getString(R.string.university_handle);
|
||||||
Twitter twitter = TwitterFactory.getSingleton();
|
Twitter twitter = TwitterFactory.getSingleton();
|
||||||
List<Status> statuses = twitter.getUserTimeline(handle, new Paging(1, maxTweets));
|
List<Status> statuses = twitter.getUserTimeline(handle, new Paging(1, maxTweets));
|
||||||
@ -68,6 +70,7 @@ public class AlertFetcher {
|
|||||||
|
|
||||||
private void fetchGamedayAlerts(Context ctx) throws TwitterException {
|
private void fetchGamedayAlerts(Context ctx) throws TwitterException {
|
||||||
// Process fetching alerts generated by staff of UNCCGameDay
|
// Process fetching alerts generated by staff of UNCCGameDay
|
||||||
|
// Not guaranteed to get `maxTweets` tweets
|
||||||
String handle = ctx.getString(R.string.gameday_handle);
|
String handle = ctx.getString(R.string.gameday_handle);
|
||||||
Twitter twitter = TwitterFactory.getSingleton();
|
Twitter twitter = TwitterFactory.getSingleton();
|
||||||
List<Status> statuses = twitter.getUserTimeline(handle, new Paging(1, maxTweets));
|
List<Status> statuses = twitter.getUserTimeline(handle, new Paging(1, maxTweets));
|
||||||
|
Loading…
Reference in New Issue
Block a user