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

com.notronix.etsy.api.model.ListingState Maven / Gradle / Ivy

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