mirror of
https://github.com/bspeice/UNCCGameDay
synced 2024-11-04 23:28:12 -05:00
Finally, alerts actually display.
This commit is contained in:
parent
0fb498a306
commit
df9e24e17c
@ -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 {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user