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

com.ebay.sdk.call.GetDescriptionTemplatesCall Maven / Gradle / Ivy

Go to download

This SDK enables you to use Java to make API calls in the eBay Trading API, which is an XML API. This maven build is provided by tonicsoft for convenience and is an exact copy of version 981 of the project distributed by eBay via the official eBay SDK website.

The newest version!
/*
Copyright (c) 2013 eBay, Inc.
This program is licensed under the terms of the eBay Common Development and
Distribution License (CDDL) Version 1.0 (the "License") and any subsequent  version 
thereof released by eBay.  The then-current version of the License can be found 
at http://www.opensource.org/licenses/cddl1.php and in the eBaySDKLicense file that 
is under the root directory at /LICENSE.txt.
*/

package com.ebay.sdk.call;

import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Calendar;

import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
 * Wrapper class of the GetDescriptionTemplates call of eBay SOAP API.
 * 
*

Title: SOAP API wrapper library.

*

Description: Contains wrapper classes for eBay SOAP APIs.

*

Copyright: Copyright (c) 2009

*

Company: eBay Inc.

*
Input property: CategoryID - A CategoryID value can be specified if the seller would like to only see the Listing Designer templates that are available for that eBay category. This field will be ignored if the MotorVehicles boolean field is also included in the call request and set to true. *
Input property: LastModifiedTime - This dateTime filter can be included and used if the user only wants to check for recently-added Listing Designer templates. If this filter is used, only the Listing Designer templates that have been added/modified after the specified timestamp will be returned in the response. *

* Typically, you will pass in the timestamp value that was returned the last time you refreshed the list of Listing Designer templates. *
Input property: MotorVehicles - This boolean field should be included and set to true if the user would only like to see the Listing Designer templates that are available for motor vehicle categories. This field will override any CategoryID value that is specified in the call request. *
Output property: ReturnedDescriptionTemplate - A DescriptionTemplate container is retrieved for each available Listing Designer template. Each DescriptionTemplate container includes the unique identifier of the template, the Listing Designer Theme Group that it belongs to, the CDATA representation of the Listing Designer template, and the URL to an image that serves as an example of the Listing Designer template. *
Output property: ReturnedLayoutTotal - This integer value indicates the total number of Listing Designer Layout templates that were retrieved. This field is always returned, even if it is 0 *
Output property: ReturnedObsoleteLayoutID - The unique identifier of a Listing Designer Layout template that is now obsolete. An ObsoleteLayoutID field is returned for each obsolete Listing Designer Layout template. *
Output property: ReturnedObsoleteThemeID - The unique identifier of a Listing Designer Theme template that is now obsolete. An ObsoleteThemeID field is returned for each obsolete Listing Designer Theme template. *
Output property: ReturnedThemeGroup - A ThemeGroup container is retrieved for each available Listing Designer Theme Group. Each ThemeGroup container includes the unique identifier of the Theme Group, the Theme Group name, and all of the Listing Designer Theme template that belong to that Theme Group. *
Output property: ReturnedThemeTotal - This integer value indicates the total number of Listing Designer Theme templates that were retrieved. This field is always returned, even if it is 0 * * @author Ron Murphy * @version 1.0 */ public class GetDescriptionTemplatesCall extends com.ebay.sdk.ApiCall { private String categoryID = null; private Calendar lastModifiedTime = null; private Boolean motorVehicles = null; private DescriptionTemplateType[] returnedDescriptionTemplate=null; private int returnedLayoutTotal=0; private int[] returnedObsoleteLayoutID=null; private int[] returnedObsoleteThemeID=null; private ThemeGroupType[] returnedThemeGroup=null; private int returnedThemeTotal=0; /** * Constructor. */ public GetDescriptionTemplatesCall() { } /** * Constructor. * @param apiContext The ApiContext object to be used to make the call. */ public GetDescriptionTemplatesCall(ApiContext apiContext) { super(apiContext); } /** * This is the base request type for the GetDescriptionTemplates call. This call retrieves detailed information on the Listing Designer templates that are available for use by the seller. * *
* @throws ApiException * @throws SdkException * @throws Exception * @return The void object. */ public void getDescriptionTemplates() throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception { GetDescriptionTemplatesRequestType req; req = new GetDescriptionTemplatesRequestType(); if (this.categoryID != null) req.setCategoryID(this.categoryID); if (this.lastModifiedTime != null) req.setLastModifiedTime(this.lastModifiedTime); if (this.motorVehicles != null) req.setMotorVehicles(this.motorVehicles); GetDescriptionTemplatesResponseType resp = (GetDescriptionTemplatesResponseType) execute(req); this.returnedDescriptionTemplate = resp.getDescriptionTemplate(); this.returnedLayoutTotal = (resp.getLayoutTotal() == null? 0: resp.getLayoutTotal().intValue()); this.returnedObsoleteLayoutID = resp.getObsoleteLayoutID(); this.returnedObsoleteThemeID = resp.getObsoleteThemeID(); this.returnedThemeGroup = resp.getThemeGroup(); this.returnedThemeTotal = (resp.getThemeTotal() == null? 0: resp.getThemeTotal().intValue()); } /** * Gets the GetDescriptionTemplatesRequestType.categoryID. * @return String */ public String getCategoryID() { return this.categoryID; } /** * Sets the GetDescriptionTemplatesRequestType.categoryID. * @param categoryID String */ public void setCategoryID(String categoryID) { this.categoryID = categoryID; } /** * Gets the GetDescriptionTemplatesRequestType.lastModifiedTime. * @return Calendar */ public Calendar getLastModifiedTime() { return this.lastModifiedTime; } /** * Sets the GetDescriptionTemplatesRequestType.lastModifiedTime. * @param lastModifiedTime Calendar */ public void setLastModifiedTime(Calendar lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** * Gets the GetDescriptionTemplatesRequestType.motorVehicles. * @return Boolean */ public Boolean getMotorVehicles() { return this.motorVehicles; } /** * Sets the GetDescriptionTemplatesRequestType.motorVehicles. * @param motorVehicles Boolean */ public void setMotorVehicles(Boolean motorVehicles) { this.motorVehicles = motorVehicles; } /** * Valid after executing the API. * Gets the returned GetDescriptionTemplatesResponseType.returnedDescriptionTemplate. * * @return DescriptionTemplateType[] */ public DescriptionTemplateType[] getReturnedDescriptionTemplate() { return this.returnedDescriptionTemplate; } /** * Valid after executing the API. * Gets the returned GetDescriptionTemplatesResponseType.returnedLayoutTotal. * * @return int */ public int getReturnedLayoutTotal() { return this.returnedLayoutTotal; } /** * Valid after executing the API. * Gets the returned GetDescriptionTemplatesResponseType.returnedObsoleteLayoutID. * * @return int[] */ public int[] getReturnedObsoleteLayoutID() { return this.returnedObsoleteLayoutID; } /** * Valid after executing the API. * Gets the returned GetDescriptionTemplatesResponseType.returnedObsoleteThemeID. * * @return int[] */ public int[] getReturnedObsoleteThemeID() { return this.returnedObsoleteThemeID; } /** * Valid after executing the API. * Gets the returned GetDescriptionTemplatesResponseType.returnedThemeGroup. * * @return ThemeGroupType[] */ public ThemeGroupType[] getReturnedThemeGroup() { return this.returnedThemeGroup; } /** * Valid after executing the API. * Gets the returned GetDescriptionTemplatesResponseType.returnedThemeTotal. * * @return int */ public int getReturnedThemeTotal() { return this.returnedThemeTotal; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy