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