Changes since
the last release

com.ebay.sdk.call
Class AddToWatchListCall

java.lang.Object
  extended by com.ebay.sdk.ApiCall
      extended by com.ebay.sdk.call.AddToWatchListCall

public class AddToWatchListCall
extends ApiCall

Wrapper class of the AddToWatchList call of eBay SOAP API.

Title: SOAP API wrapper library.

Description: Contains wrapper classes for eBay SOAP APIs.

Copyright: Copyright (c) 2007

Company: eBay Inc.


Input property: ItemIDs - The ItemID of the item that is to be added to the watch list. The item must be a currently active item, and the total number of items in the watchlist (after the items in the request have been added) cannot exceed the maximum allowed number of watch list items. One or more ItemIDs can be specified, each in its own ItemID container. A separate error node will be returned for each item that fails.
Output property: ReturnedWatchListCount - The number of items in the user's watch list (after those specified in the call request have been added)
Output property: ReturnedWatchListMaximum - The maximum number of items allowed in watch lists. Currently this value is the same for all sites and all users.


Field Summary
 
Fields inherited from class com.ebay.sdk.ApiCall
apiException, fullCredentials, sendReqListeners
 
Constructor Summary
AddToWatchListCall()
          Constructor.
AddToWatchListCall(ApiContext apiContext)
          Constructor.
 
Method Summary
 void addToWatchList()
          Adds one or more items to the user's My eBay watch list.
 String[] getItemIDs()
          Gets the AddToWatchListRequestType.itemIDs.
 int getReturnedWatchListCount()
          Valid after executing the API.
 int getReturnedWatchListMaximum()
          Valid after executing the API.
 void setItemIDs(String[] itemIDs)
          Sets the AddToWatchListRequestType.itemIDs.
static ItemIDType[] stringListToItemIDList(String[] strList)
           
 
Methods inherited from class com.ebay.sdk.ApiCall
addDetailLevel, addSendRequestListener, execute, executeByApiName, getApiContext, getApiException, getCallRetry, getDetailLevel, getEnableCompression, getRequestXml, getResponseObject, getResponseXml, getSite, hasError, hasWarning, removeSendRequestListener, setApiContext, setCallRetry, setDetailLevel, setEnableCompression, setSite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddToWatchListCall

public AddToWatchListCall()
Constructor.


AddToWatchListCall

public AddToWatchListCall(ApiContext apiContext)
Constructor.

Parameters:
apiContext - The ApiContext object to be used to make the call.
Method Detail

addToWatchList

public void addToWatchList()
                    throws ApiException,
                           SdkException,
                           Exception
Adds one or more items to the user's My eBay watch list.

Throws:
ApiException
SdkException
Exception

getItemIDs

public String[] getItemIDs()
Gets the AddToWatchListRequestType.itemIDs.

Returns:
String[]

setItemIDs

public void setItemIDs(String[] itemIDs)
Sets the AddToWatchListRequestType.itemIDs.

Parameters:
itemIDs - String[]

stringListToItemIDList

public static ItemIDType[] stringListToItemIDList(String[] strList)
Parameters:
strList - String[]
Returns:
ItemIDType[]

getReturnedWatchListCount

public int getReturnedWatchListCount()
Valid after executing the API. Gets the returned AddToWatchListResponseType.returnedWatchListCount.

Returns:
int

getReturnedWatchListMaximum

public int getReturnedWatchListMaximum()
Valid after executing the API. Gets the returned AddToWatchListResponseType.returnedWatchListMaximum.

Returns:
int

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations:developer-relations@ebay.com
© 2004-2006 eBay Inc. All rights reserved.