Notification Code.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package net.gepafin.tendermanagement.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
public enum NotificationEnum {
|
||||
//status
|
||||
READ("READ"), UNREAD("UNREAD");
|
||||
|
||||
private final String value;
|
||||
|
||||
NotificationEnum(String value) {
|
||||
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
return String.valueOf(value);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package net.gepafin.tendermanagement.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
public enum NotificationTypeEnum {
|
||||
CALL_CREATED("CALL_CREATED"),
|
||||
APPLICATION_SUBMISSION("APPLICATION_SUBMISSION"),
|
||||
AMENDMENT_CREATION("AMENDMENT_CREATION"),
|
||||
EVALUATION_RESULT("EVALUATION_RESULT");
|
||||
|
||||
private final String value;
|
||||
|
||||
NotificationTypeEnum(String value) {
|
||||
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
return String.valueOf(value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user