com.urbanairship.api.push.model.notification.ios.IOSLiveActivityEvent 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 iosLiveActivityEvent
*/
public enum IOSLiveActivityEvent {
UPDATE("update"),
END("end");
private final String iosLiveActivityEvent;
IOSLiveActivityEvent(String iosLiveActivityEvent) {
this.iosLiveActivityEvent = iosLiveActivityEvent;
}
public String getIosLiveActivityEvent() {
return iosLiveActivityEvent;
}
public static Optional find(String identifier) {
for (IOSLiveActivityEvent iosLiveActivityEvent : values()) {
if (iosLiveActivityEvent.getIosLiveActivityEvent().equals(identifier)) {
return Optional.of(iosLiveActivityEvent);
}
}
return Optional.empty();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy