Finally, alerts actually display.

This commit is contained in:
bspeice 2013-10-09 20:31:07 -04:00
parent 0fb498a306
commit df9e24e17c
2 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,7 @@
package com.uncc.gameday.activities;
import java.util.Date;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
@ -9,7 +11,7 @@ import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import com.uncc.gameday.R;
import com.uncc.gameday.alerts.AlertFetcher;
import com.uncc.gameday.alerts.Alert;
import com.uncc.gameday.alerts.AlertService;
public class Home extends MenuActivity {

View File

@ -18,13 +18,21 @@ public class Alert {
private String message;
private boolean shown;
// Default constructor
public Alert(){}
public Alert(Date alarmDate, String message, boolean shown) {
this.setAlarmDate(alarmDate);
this.setMessage(message);
this.setShown(shown);
}
public Date getAlarmDate() {
return alarmDate;
}
public void setAlarmDate(Date alarmDate) {
this.alarmDate = alarmDate;
}
public String getMessage() {
return message;
}