2016-04-03 00:50:45 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.deviceevents;
|
|
|
|
|
|
|
|
public class GBDeviceEventDisplayMessage {
|
|
|
|
public String message;
|
|
|
|
public int duration;
|
|
|
|
public int severity;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An event for displaying a message to the user. How the message is displayed
|
|
|
|
* is a detail of the current activity, which needs to listen to the Intent
|
|
|
|
* GB.ACTION_DISPLAY_MESSAGE.
|
2016-04-04 20:08:34 +02:00
|
|
|
*
|
2016-04-03 00:50:45 +02:00
|
|
|
* @param message
|
|
|
|
* @param duration
|
|
|
|
* @param severity
|
|
|
|
*/
|
|
|
|
public GBDeviceEventDisplayMessage(String message, int duration, int severity) {
|
|
|
|
this.message = message;
|
|
|
|
this.duration = duration;
|
|
|
|
this.severity = severity;
|
|
|
|
}
|
|
|
|
}
|