mirror of
https://github.com/bspeice/UNCCGameDay
synced 2025-01-09 15:30:06 -05:00
Finally, alerts actually display.
This commit is contained in:
parent
0fb498a306
commit
df9e24e17c
@ -1,5 +1,7 @@
|
|||||||
package com.uncc.gameday.activities;
|
package com.uncc.gameday.activities;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import android.app.AlarmManager;
|
import android.app.AlarmManager;
|
||||||
import android.app.PendingIntent;
|
import android.app.PendingIntent;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -9,7 +11,7 @@ import android.content.SharedPreferences.Editor;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
import com.uncc.gameday.R;
|
import com.uncc.gameday.R;
|
||||||
import com.uncc.gameday.alerts.AlertFetcher;
|
import com.uncc.gameday.alerts.Alert;
|
||||||
import com.uncc.gameday.alerts.AlertService;
|
import com.uncc.gameday.alerts.AlertService;
|
||||||
|
|
||||||
public class Home extends MenuActivity {
|
public class Home extends MenuActivity {
|
||||||
|
@ -18,13 +18,21 @@ public class Alert {
|
|||||||
private String message;
|
private String message;
|
||||||
private boolean shown;
|
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() {
|
public Date getAlarmDate() {
|
||||||
return alarmDate;
|
return alarmDate;
|
||||||
}
|
}
|
||||||
public void setAlarmDate(Date alarmDate) {
|
public void setAlarmDate(Date alarmDate) {
|
||||||
this.alarmDate = alarmDate;
|
this.alarmDate = alarmDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user