All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.urbanairship.api.push.model.notification.ios.IOSLiveActivityEvent Maven / Gradle / Ivy

There is a newer version: 9.4.2
Show newest version
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