com.notronix.etsy.api.model.ListingState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JEtsy Show documentation
Show all versions of JEtsy Show documentation
A Java implementation of a Java version of the Etsy API
package com.notronix.etsy.api.model;
public enum ListingState
{
active,
removed,
sold_out,
expired,
edit,
draft,
_private("private"),
unavailable;
private String apiValue;
ListingState() {
apiValue = this.name();
}
ListingState(String apiValue) {
this.apiValue = apiValue;
}
public String apiValue() {
return apiValue;
}
public static ListingState forValue(String name) {
try {
return ListingState.valueOf(name);
}
catch (Exception ex) {
return ListingState.valueOf("_" + name);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy