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

com.ebay.sdk.call.RemoveFromWatchListCall 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.Boolean;
import java.lang.Integer;

import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
 * Wrapper class of the RemoveFromWatchList 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: ItemIDs - The unique identifier of the item to be removed from the * user's Watch List. Multiple ItemID fields can be specified in the same request, but note that the RemoveAllItems field or VariationKey container cannot be specified if one or more ItemID fields are used. *

*
Input property: RemoveAllItems - If this field is included and set to true, then all the items in the user's * Watch List are removed. Note that if the RemoveAllItems field is specified, one or more ItemID fields or the VariationKey cannot be used. *
Input property: VariationKey - This container is used if the user want to remove one or more product variations within a multiple-variation listing. Note that if the VariationKey container is used, one or more ItemID fields or the RemoveAllItems field cannot be used. *
Output property: ReturnedWatchListCount - The current number of items in the user's Watch List (considering that the items specified in the call request were successfully removed). *
Output property: ReturnedWatchListMaximum - The maximum number of items allowed in the user's Watch List. Currently this value is 300, and is the same for all sites and all users. * * @author Ron Murphy * @version 1.0 */ public class RemoveFromWatchListCall extends com.ebay.sdk.ApiCall { private String[] itemIDs = null; private Boolean removeAllItems = null; private VariationKeyType[] variationKey = null; private int returnedWatchListCount=0; private int returnedWatchListMaximum=0; /** * Constructor. */ public RemoveFromWatchListCall() { } /** * Constructor. * @param apiContext The ApiContext object to be used to make the call. */ public RemoveFromWatchListCall(ApiContext apiContext) { super(apiContext); } /** * The call enables a user to remove one or more items from their Watch List. A user can view the items that they are currently watching by calling GetMyeBayBuying. *

* The user has the option of removing one or more single-variation listings, one or more product variations within a multiple-variation listing, or removing all items from the Watch List. * *
* @throws ApiException * @throws SdkException * @throws Exception * @return The void object. */ public void removeFromWatchList() throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception { RemoveFromWatchListRequestType req; req = new RemoveFromWatchListRequestType(); if (this.itemIDs != null) req.setItemID(this.itemIDs); if (this.removeAllItems != null) req.setRemoveAllItems(this.removeAllItems); if (this.variationKey != null) req.setVariationKey(this.variationKey); RemoveFromWatchListResponseType resp = (RemoveFromWatchListResponseType) execute(req); this.returnedWatchListCount = (resp.getWatchListCount() == null? 0: resp.getWatchListCount().intValue()); this.returnedWatchListMaximum = (resp.getWatchListMaximum() == null? 0: resp.getWatchListMaximum().intValue()); } /** * Gets the RemoveFromWatchListRequestType.itemIDs. * @return String[] */ public String[] getItemIDs() { return this.itemIDs; } /** * Sets the RemoveFromWatchListRequestType.itemIDs. * @param itemIDs String[] */ public void setItemIDs(String[] itemIDs) { this.itemIDs = itemIDs; } /** * Gets the RemoveFromWatchListRequestType.removeAllItems. * @return Boolean */ public Boolean getRemoveAllItems() { return this.removeAllItems; } /** * Sets the RemoveFromWatchListRequestType.removeAllItems. * @param removeAllItems Boolean */ public void setRemoveAllItems(Boolean removeAllItems) { this.removeAllItems = removeAllItems; } /** * Gets the RemoveFromWatchListRequestType.variationKey. * @return VariationKeyType[] */ public VariationKeyType[] getVariationKey() { return this.variationKey; } /** * Sets the RemoveFromWatchListRequestType.variationKey. * @param variationKey VariationKeyType[] */ public void setVariationKey(VariationKeyType[] variationKey) { this.variationKey = variationKey; } /** * Valid after executing the API. * Gets the returned RemoveFromWatchListResponseType.returnedWatchListCount. * * @return int */ public int getReturnedWatchListCount() { return this.returnedWatchListCount; } /** * Valid after executing the API. * Gets the returned RemoveFromWatchListResponseType.returnedWatchListMaximum. * * @return int */ public int getReturnedWatchListMaximum() { return this.returnedWatchListMaximum; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy