/// <summary>
		/// This call is use to add one or more order line items to an eBay user's My eBay Watch List. An auction item or a single-variation, fixed-price listing is identified with an <b>ItemID</b> value. To add a specific item variation to the Watch List from within a multi-variation, fixed-price listing, the user will use the  <b>VariationKey</b> container
		/// </summary>
		/// 
		/// <param name="ItemIDList">
		/// The <b>ItemID</b> of the item that is to be added to the eBay user's Watch List.
		/// The item must be a currently active item, and the total number
		/// of items in the user's
		/// Watch List (after the items in the request have been added) cannot exceed
		/// the maximum allowed number of Watch List items. One or more <b>ItemID</b> fields can be specified. A separate error node will be
		/// returned for each item that fails.
		/// 
		/// Either <b>ItemID</b> or <b>VariationKey</b> is required
		/// (but do not pass in both).
		/// </param>
		///
		/// <param name="VariationKeyList">
		/// A variation (or set of variations) that you want to add to the Watch List.
		/// Use this to watch a particular variation (not the entire item).
		/// Either the top-level <b>ItemID</b> or <b>VariationKey</b> is required
		/// (but do not pass in both).
		/// </param>
		///
		public int AddToWatchList(StringCollection ItemIDList, VariationKeyTypeCollection VariationKeyList)
		{
			this.ItemIDList = ItemIDList;
			this.VariationKeyList = VariationKeyList;

			Execute();
			return ApiResponse.WatchListCount;
		}
Beispiel #2
0
        /// <summary>
        /// Adds one or more order line items to the eBay user's Watch List. An auction item or a single-variation, fixed-price listing is identified with an <b>ItemID</b> value. To add a specific item variation to the Watch List from within a multi-variation, fixed-price listing, the user will use the  <b>VariationKey</b> container instead.
        /// </summary>
        ///
        /// <param name="ItemIDList">
        /// The unique identifier of the single-variation listing that is to be added to the eBay user's Watch List. The item must be a currently active item, and the total number of items in the user's Watch List (after the items in the request have been added) cannot exceed the maximum allowed number of Watch List items. One or more <b>ItemID</b> fields can be specified. A separate error node will be returned for each item that was not successfully added to the Watch List.  The user must use either one or more <b>ItemID</b> values or one or more <b>VariationKey</b> containers, but the user may not use both of these entities in the same call.
        /// </param>
        ///
        /// <param name="VariationKeyList">
        /// This container is used to specify one or more item variations in a multi-variation, fixed-price listing that you want to add to the Watch List.
        /// The listing is identified through the <b>ItemID</b> value and each item variation existing within that listing is identified through a <b>VariationSpecifics.NameValueList</b> container.
        ///
        ///
        /// The user must use either one or more <b>ItemID</b> values or one or more <b>VariationKey</b> containers, but the user may not use both of these entities in the same call.
        /// </param>
        ///
        public int AddToWatchList(StringCollection ItemIDList, VariationKeyTypeCollection VariationKeyList)
        {
            this.ItemIDList       = ItemIDList;
            this.VariationKeyList = VariationKeyList;

            Execute();
            return(ApiResponse.WatchListCount);
        }
		/// <summary>
		/// Enables a user to remove one or more items from their My eBay watch list.
		/// </summary>
		/// 
		/// <param name="ItemIDList">
		/// The ID of the item to be removed from the
		/// watch list. Either ItemID, RemoveAllItems, or VariationKey must
		/// be specified, but NOT more than one of these.
		/// Multiple ItemID fields can be specified in the same request.
		/// </param>
		///
		/// <param name="RemoveAllItems">
		/// If true, then all the items in the user's
		/// watch list are removed. Either ItemID, RemoveAllItems, or VariationKey must be specified, but NOT more than one of these.
		/// </param>
		///
		/// <param name="VariationKeyList">
		/// A variation (or set of variations) that you want to remove
		/// from the watch list. Either ItemID, RemoveAllItems, or VariationKey must be specified, but NOT more than one of these.
		/// </param>
		///
		public int RemoveFromWatchList(StringCollection ItemIDList, bool RemoveAllItems, VariationKeyTypeCollection VariationKeyList)
		{
			this.ItemIDList = ItemIDList;
			this.RemoveAllItems = RemoveAllItems;
			this.VariationKeyList = VariationKeyList;

			Execute();
			return ApiResponse.WatchListCount;
		}
Beispiel #4
0
        /// <summary>
        /// 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 <b>GetMyeBayBuying</b>.
        /// <br/><br/>
        /// 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.
        /// </summary>
        ///
        /// <param name="ItemIDList">
        /// The unique identifier of the item to be removed from the
        /// user's Watch List. Multiple <b>ItemID</b> fields can be specified in the same request, but note that the <b>RemoveAllItems</b> field or <b>VariationKey</b> container cannot be specified if one or more <b>ItemID</b> fields are used.
        /// <br/><br/>
        /// </param>
        ///
        /// <param name="RemoveAllItems">
        /// If this field is included and set to <code>true</code>, then all the items in the user's
        /// Watch List are removed. Note that if the <b>RemoveAllItems</b> field is specified, one or more <b>ItemID</b> fields or the <b>VariationKey</b> cannot be used.
        /// </param>
        ///
        /// <param name="VariationKeyList">
        /// This container is used if the user want to remove one or more product variations (within a multiple-variation listing) from the Watch List. Note that if the <b>VariationKey</b> container is used, one or more <b>ItemID</b> fields or the <b>RemoveAllItems</b> field cannot be used.
        /// </param>
        ///
        public int RemoveFromWatchList(StringCollection ItemIDList, bool RemoveAllItems, VariationKeyTypeCollection VariationKeyList)
        {
            this.ItemIDList       = ItemIDList;
            this.RemoveAllItems   = RemoveAllItems;
            this.VariationKeyList = VariationKeyList;

            Execute();
            return(ApiResponse.WatchListCount);
        }