com.notronix.etsy.impl.method.GetTaxonomyNodePropertiesMethod 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.impl.method;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.notronix.etsy.impl.model.EtsyTaxonomyNodeProperty;
import java.util.List;
public class GetTaxonomyNodePropertiesMethod extends AbstractEtsyMethod>
{
private Long taxonomyId;
@Override
String getURI() {
return "/taxonomy/seller/" + taxonomyId + "/properties";
}
@Override
public List getResponse(Gson gson, String jsonPayload) {
EtsyResponse> response =
gson.fromJson(jsonPayload, new TypeToken>>(){}.getType());
return response.getResults();
}
public Long getTaxonomyId() {
return taxonomyId;
}
public void setTaxonomyId(Long taxonomyId) {
this.taxonomyId = taxonomyId;
}
public GetTaxonomyNodePropertiesMethod withTaxonomyId(Long taxonomyId) {
this.taxonomyId = taxonomyId;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy