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

com.notronix.etsy.impl.taxonomy.EtsyTaxonomyResource Maven / Gradle / Ivy

There is a newer version: 3.0.0014
Show newest version
package com.notronix.etsy.impl.taxonomy;

import com.notronix.etsy.api.EtsyException;
import com.notronix.etsy.api.authentication.model.Credentials;
import com.notronix.etsy.api.PageableResponse;
import com.notronix.etsy.api.taxonomy.TaxonomyResource;
import com.notronix.etsy.impl.EtsyResource;
import com.notronix.etsy.impl.EtsyMethodExecutor;
import com.notronix.etsy.impl.taxonomy.method.GetSellerTaxonomyNodesMethod;
import com.notronix.etsy.impl.taxonomy.method.GetTaxonomyNodePropertiesMethod;
import com.notronix.etsy.impl.taxonomy.model.EtsyTaxonomy;
import com.notronix.etsy.impl.taxonomy.model.EtsyTaxonomyNodeProperty;

public class EtsyTaxonomyResource extends EtsyResource implements TaxonomyResource
{
    public EtsyTaxonomyResource(EtsyMethodExecutor executor, Credentials clientCredentials) {
        super(executor, clientCredentials);
    }

    @Override
    public PageableResponse getSellerTaxonomyNodes() throws EtsyException {
        return getExecutor().execute(new GetSellerTaxonomyNodesMethod(getClientCredentials()));
    }

    @Override
    public PageableResponse getTaxonomyNodeProperties(Long taxonomyId) throws EtsyException {
        return getExecutor().execute(new GetTaxonomyNodePropertiesMethod(getClientCredentials())
                .withTaxonomyId(taxonomyId));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy