Inheritance: SaveFavouriteRequest
Beispiel #1
0
        /// <summary>
        /// <para>Performs the Favourites method:
        /// Save Seller.
        /// </para>
        /// <para>Serializes the given SaveSellerRequest into xml.</para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="saveSeller">The object that will be serialized into xml and then sent in a POST message.</param>
        /// <returns>XDocument.</returns>
        public XDocument SaveSeller(SaveSellerRequest saveSeller)
        {
            if (_favourites == null)
            {
                _favourites = new FavouriteMethods(_connection);
            }

            return _favourites.SaveSeller(saveSeller);
        }
Beispiel #2
0
        /// <summary>
        /// <para>Performs the Favourites method:
        /// Save Seller. POST
        /// </para>
        /// <para>Serializes the given SaveSellerRequest into xml.</para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="saveSeller">The object that will be serialized into xml and then sent in a POST message.</param>
        /// <returns>XDocument.</returns>
        public XDocument SaveSeller(SaveSellerRequest saveSeller)
        {
            const string query = Constants.FAVOURITES + "/" + Constants.SELLER + Constants.XML;

            return(_connection.Post(saveSeller, query));
        }
 /// <summary>
 /// <para>Performs the Favourites method:
 /// Save Seller. POST
 /// </para>
 /// <para>Serializes the given SaveSellerRequest into xml.</para>
 /// REQUIRES AUTHENTICATION.
 /// </summary>
 /// <param name="saveSeller">The object that will be serialized into xml and then sent in a POST message.</param>
 /// <returns>XDocument.</returns>
 public XDocument SaveSeller(SaveSellerRequest saveSeller)
 {
     const string query = Constants.FAVOURITES + "/" + Constants.SELLER + Constants.XML;
     return _connection.Post(saveSeller, query);
 }