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

com.urbanairship.api.push.model.notification.android.AndroidLiveUpdateEvent Maven / Gradle / Ivy

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