mirror of
https://github.com/bspeice/UNCCGameDay
synced 2025-07-06 08:15:06 -04:00
Add some skeleton code for fetching alerts.
This commit is contained in:
@ -18,6 +18,39 @@ public class Alerts extends MenuActivity {
|
||||
setContentView(R.layout.activity_alerts);
|
||||
}
|
||||
|
||||
public void fetchAlerts() {
|
||||
// Fetch all alerts. Responsible for discovering what sources need to be fetched.
|
||||
|
||||
if (((CheckBox)findViewById(R.id.alerts_check_timed)).isChecked())
|
||||
// Fetch timed alerts
|
||||
this.fetchTimedAlerts();
|
||||
else if (((CheckBox)findViewById(R.id.alerts_check_organizations)).isChecked())
|
||||
// Fetch organization alerts
|
||||
this.fetchOrganizationAlerts();
|
||||
else if (((CheckBox)findViewById(R.id.alerts_check_university)).isChecked())
|
||||
// Fetch university alerts
|
||||
this.fetchUniversityAlerts();
|
||||
|
||||
// And always fetch alerts made by us. Period.
|
||||
this.fetchGamedayAlerts();
|
||||
}
|
||||
|
||||
private void fetchTimedAlerts() {
|
||||
// Process the rules for all timed alerts.
|
||||
}
|
||||
|
||||
private void fetchOrganizationAlerts() {
|
||||
// Process fetching organization alerts (alerts retweeted by us)
|
||||
}
|
||||
|
||||
private void fetchUniversityAlerts() {
|
||||
// Process fetching university alerts
|
||||
}
|
||||
|
||||
private void fetchGamedayAlerts() {
|
||||
// Process fetching alerts generated by staff of UNCCGameDay
|
||||
}
|
||||
|
||||
public void onClickTimedAlerts(View view) {
|
||||
int toastDuration = Toast.LENGTH_SHORT;
|
||||
if (((CheckBox) view).isChecked())
|
||||
|
Reference in New Issue
Block a user