com.urbanairship.api.push.model.notification.ios.IOSInterruptionLevel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
The Urban Airship Java client library
package com.urbanairship.api.push.model.notification.ios;
import java.util.Optional;
/**
* Enum of iOS Interruption levels
*/
public enum IOSInterruptionLevel {
PASSIVE("passive"),
ACTIVE("active"),
TIME_SENSITIVE("time-sensitive"),
CRITICAL("critical");
private final String interruptionLevel;
private IOSInterruptionLevel(String interruptionLevel) {
this.interruptionLevel = interruptionLevel;
}
public String getInterruptionLevel() {
return interruptionLevel;
}
public static Optional find(String identifier) {
for (IOSInterruptionLevel interruptionLevel : values()) {
if (interruptionLevel.getInterruptionLevel().equals(identifier)) {
return Optional.of(interruptionLevel);
}
}
return Optional.empty();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy