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

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

/*
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 eBay SDK ../docs directory.
*/

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. This URL is returned in the SiteHostedPictureDetails.FullURL field of the UploadSiteHostedPictures response. *
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); } /** * By default, unpublished pictures uploaded to eBay Picture Services (EPS) via the UploadSiteHostedPictures call will be kept on the server for five days before being purged. The ExtendSiteHostedPictures call is used to extend this expiration date by the number of days specified in the call. This restricted call gives approved sellers the ability to extend the default expiration date of pictures uploaded to EPS but not immediately published in an eBay listing. * *
* @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; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy