com.ebay.sdk.call.ExtendSiteHostedPicturesCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebaysdkcore Show documentation
Show all versions of ebaysdkcore Show documentation
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.Integer;
import java.lang.String;
import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
* Wrapper class of the ExtendSiteHostedPictures 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: PictureURL
- The URL of the image hosted by eBay Picture Services.
*
Input property: ExtensionInDays
- The number of days by which to extend the expiration date for the
* specified image.
*
Output property: ReturnedPictureURL
- The URL of the site-hosted picture whose expiration date was extended through the ExtendSiteHostedPictures call. This field will be returned if the expiration date of the site-hosted picture was successfully extended.
*
* @author Ron Murphy
* @version 1.0
*/
public class ExtendSiteHostedPicturesCall extends com.ebay.sdk.ApiCall
{
private String[] pictureURL = null;
private Integer extensionInDays = null;
private String[] returnedPictureURL=null;
/**
* Constructor.
*/
public ExtendSiteHostedPicturesCall() {
}
/**
* Constructor.
* @param apiContext The ApiContext object to be used to make the call.
*/
public ExtendSiteHostedPicturesCall(ApiContext apiContext) {
super(apiContext);
}
/**
* Gives approved sellers the ability to extend the default and
* ongoing lifetime of pictures uploaded to eBay.
*
*
* @throws ApiException
* @throws SdkException
* @throws Exception
* @return The String[] object.
*/
public String[] extendSiteHostedPictures()
throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception
{
ExtendSiteHostedPicturesRequestType req;
req = new ExtendSiteHostedPicturesRequestType();
if (this.pictureURL != null)
req.setPictureURL(this.pictureURL);
if (this.extensionInDays != null)
req.setExtensionInDays(this.extensionInDays);
ExtendSiteHostedPicturesResponseType resp = (ExtendSiteHostedPicturesResponseType) execute(req);
this.returnedPictureURL = resp.getPictureURL();
return this.getReturnedPictureURL();
}
/**
* Gets the ExtendSiteHostedPicturesRequestType.extensionInDays.
* @return Integer
*/
public Integer getExtensionInDays()
{
return this.extensionInDays;
}
/**
* Sets the ExtendSiteHostedPicturesRequestType.extensionInDays.
* @param extensionInDays Integer
*/
public void setExtensionInDays(Integer extensionInDays)
{
this.extensionInDays = extensionInDays;
}
/**
* Gets the ExtendSiteHostedPicturesRequestType.pictureURL.
* @return String[]
*/
public String[] getPictureURL()
{
return this.pictureURL;
}
/**
* Sets the ExtendSiteHostedPicturesRequestType.pictureURL.
* @param pictureURL String[]
*/
public void setPictureURL(String[] pictureURL)
{
this.pictureURL = pictureURL;
}
/**
* Valid after executing the API.
* Gets the returned ExtendSiteHostedPicturesResponseType.returnedPictureURL.
*
* @return String[]
*/
public String[] getReturnedPictureURL()
{
return this.returnedPictureURL;
}
}