Enum CustomNotificationResult.SendStatus
- java.lang.Object
-
- java.lang.Enum<CustomNotificationResult.SendStatus>
-
- org.cyclos.impl.utils.notifications.CustomNotificationResult.SendStatus
-
- All Implemented Interfaces:
Serializable,Comparable<CustomNotificationResult.SendStatus>
- Enclosing class:
- CustomNotificationResult
public static enum CustomNotificationResult.SendStatus extends Enum<CustomNotificationResult.SendStatus>
Indicates the status of sending a specific medium
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORThere was an error sending the notificationSKIPPEDThe notification for this medium was not requested to be sentSUCCESSThe notification was successfully sentUNAVAILABLEThe notification wasn't sent.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CustomNotificationResult.SendStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static CustomNotificationResult.SendStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final CustomNotificationResult.SendStatus SUCCESS
The notification was successfully sent
-
ERROR
public static final CustomNotificationResult.SendStatus ERROR
There was an error sending the notification
-
UNAVAILABLE
public static final CustomNotificationResult.SendStatus UNAVAILABLE
The notification wasn't sent. Reasons:- For email medium, the user don't have an email address;
- For sms medium, the user don't have a mobile phone;
- For mobile app notifications, the user don't have any active FCM tokens.
-
SKIPPED
public static final CustomNotificationResult.SendStatus SKIPPED
The notification for this medium was not requested to be sent
-
-
Method Detail
-
values
public static CustomNotificationResult.SendStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CustomNotificationResult.SendStatus c : CustomNotificationResult.SendStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomNotificationResult.SendStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-