mirror of
https://github.com/bspeice/UNCCGameDay
synced 2024-11-05 15:48:13 -05:00
Further Alert cleanup >AGK
This commit is contained in:
parent
7dc2e52a05
commit
33afb534bd
@ -1,10 +1,7 @@
|
|||||||
package com.uncc.gameday.alerts;
|
package com.uncc.gameday.alerts;
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
import com.uncc.gameday.R;
|
import com.uncc.gameday.R;
|
||||||
import com.uncc.gameday.activities.Home;
|
import com.uncc.gameday.activities.Home;
|
||||||
|
|
||||||
import android.app.NotificationManager;
|
import android.app.NotificationManager;
|
||||||
import android.app.PendingIntent;
|
import android.app.PendingIntent;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -14,7 +11,7 @@ import android.support.v4.app.TaskStackBuilder;
|
|||||||
|
|
||||||
public class Alert {
|
public class Alert {
|
||||||
|
|
||||||
private Date alarmDate;
|
private Long alarmDate;
|
||||||
private String message;
|
private String message;
|
||||||
private int shown;
|
private int shown;
|
||||||
private String type;
|
private String type;
|
||||||
@ -22,7 +19,7 @@ public class Alert {
|
|||||||
// Default constructor
|
// Default constructor
|
||||||
public Alert(){}
|
public Alert(){}
|
||||||
|
|
||||||
public Alert(Date alarmDate, String message, int shown, String type) {
|
public Alert(Long alarmDate, String message, int shown, String type) {
|
||||||
this.setAlarmDate(alarmDate);
|
this.setAlarmDate(alarmDate);
|
||||||
this.setMessage(message);
|
this.setMessage(message);
|
||||||
this.setShown(shown);
|
this.setShown(shown);
|
||||||
@ -36,10 +33,10 @@ public class Alert {
|
|||||||
public String getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
public Date getAlarmDate() {
|
public Long getAlarmDate() {
|
||||||
return alarmDate;
|
return alarmDate;
|
||||||
}
|
}
|
||||||
public void setAlarmDate(Date alarmDate) {
|
public void setAlarmDate(Long alarmDate) {
|
||||||
this.alarmDate = alarmDate;
|
this.alarmDate = alarmDate;
|
||||||
}
|
}
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
|
Loading…
Reference in New Issue
Block a user