2015-01-07 13:16:55 +01:00
|
|
|
package de.svenkubiak.jpushover.enums;
|
|
|
|
|
2015-01-08 08:12:55 +01:00
|
|
|
/**
|
2015-12-08 22:03:44 +01:00
|
|
|
*
|
2015-01-08 08:12:55 +01:00
|
|
|
* @author svenkubiak
|
|
|
|
*
|
|
|
|
*/
|
2015-01-07 13:16:55 +01:00
|
|
|
public enum Constants {
|
2015-01-09 08:22:35 +01:00
|
|
|
MESSAGES_URL("https://api.pushover.net/1/messages.json"),
|
|
|
|
VALIDATION_URL("https://api.pushover.net/1/users/validate.json"),
|
2015-01-07 13:16:55 +01:00
|
|
|
MESSAGE("message"),
|
|
|
|
TITLE("title"),
|
|
|
|
DEVICE("device"),
|
|
|
|
USER("user"),
|
|
|
|
TOKEN("token"),
|
|
|
|
SOUND("sound"),
|
|
|
|
PRIORITY("priority"),
|
|
|
|
TIMESTAMP("timestamp"),
|
|
|
|
URL("url"),
|
2015-01-09 07:56:01 +01:00
|
|
|
URLTITLE("urltitle"),
|
|
|
|
CALLBACK("callback"),
|
|
|
|
EXPIRE("expire"),
|
2015-12-08 22:03:44 +01:00
|
|
|
RETRY("retry"),
|
|
|
|
HTML("html");
|
|
|
|
|
2015-01-07 13:16:55 +01:00
|
|
|
private final String value;
|
|
|
|
|
|
|
|
Constants (String value) {
|
|
|
|
this.value = value;
|
|
|
|
}
|
|
|
|
|
2015-12-08 22:03:44 +01:00
|
|
|
public String toString() {
|
2015-01-07 13:16:55 +01:00
|
|
|
return this.value;
|
|
|
|
}
|
|
|
|
}
|