com.urbanairship.api.push.model.Position 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
/*
* Copyright (c) 2013-2016. Urban Airship and Contributors
*/
package com.urbanairship.api.push.model;
import java.util.Optional;
/**
* Enum for specifying the notification position.
*/
public enum Position {
TOP("top"),
BOTTOM("bottom");
private final String type;
private Position(String type) {
this.type = type;
}
public static Optional find(String type) {
for (Position position : values()) {
if (position.getType().equals(type)) {
return Optional.of(position);
}
}
return Optional.empty();
}
public String getType() {
return type;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy