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

com.urbanairship.api.nameduser.model.NamedUserUpdateChannelAction Maven / Gradle / Ivy

There is a newer version: 9.4.2
Show newest version
package com.urbanairship.api.nameduser.model;

import java.util.Optional;

public enum NamedUserUpdateChannelAction {
    ASSOCIATE("associate"),
    DISASSOCIATE("disassociate");

    private final String identifier;

    private NamedUserUpdateChannelAction(String identifier) {
        this.identifier = identifier;
    }

    public static Optional find(String identifier) {
        for (NamedUserUpdateChannelAction namedUserUpdateChannelAction : values()) {
            if (namedUserUpdateChannelAction.getIdentifier().equals(identifier)) {
                return Optional.of(namedUserUpdateChannelAction);
            }
        }

        return Optional.empty();
    }

    public String getIdentifier() {
        return identifier;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy