Exemple #1
0
 /// <summary>
 /// Adds the default requirements of ebay requests so they dont need to be filled in each time
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="requestType"></param>
 /// <returns></returns>
 public void SetupRequestType <T>(AbstractRequestType requestType)
 {
     requestType.Version     = Properties.ServiceVersion;
     requestType.DetailLevel = new[]
     {
         DetailLevelCodeType.ReturnAll
     };
     requestType.WarningLevel          = WarningLevelCodeType.Low;
     requestType.WarningLevelSpecified = true;
 }
Exemple #2
0
 private void setStandardParams(AbstractRequestType request)
 {
     if (request.Version == null)
     {
         request.Version = ServiceVersion;
     }
     if (request.ErrorLanguage != null && this.config.ContainsKey("languageCode"))
     {
         request.ErrorLanguage = config["languageCode"];
     }
 }
Exemple #3
0
 /// <summary>
 /// Sets standard parameters common to all requests
 /// </summary>
 private void setStandardParams(AbstractRequestType request)
 {
     if (request.Version == null)
     {
         request.Version = serviceVersion;
     }
     if (request.ErrorLanguage != null && ConfigManager.Instance.GetProperty("languageCode") != null)
     {
         request.ErrorLanguage = ConfigManager.Instance.GetProperty("languageCode");
     }
 }
Exemple #4
0
		/// <summary>
		/// Sends the Request and returns the Response.
	
        /// In most cases, you would use the <see cref="Execute"/> method to send the call request to eBay. The
        /// ExecuteRequest method is only used if you need to directly use the actual SOAP request object 
        /// that underlies the ApiCall object to make the call (and use the actual underlying SOAP response 
        /// object to receive the response). For more information, see 
        /// <see href="http://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=616">
        /// What is the difference between Execute and ExecuteRequest</see>.
        /// </summary>
		/// <param name="Request">The <see cref="AbstractRequestType"/>.</param>
		/// <returns>The <see cref="AbstractResponseType"/>.</returns>
		public AbstractResponseType ExecuteRequest(AbstractRequestType Request)
		{
			AbstractRequest = Request;
			SendRequest();
			return AbstractResponse;
		}
Exemple #5
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="AbstractRequest">The <see cref="AbstractRequest"/> for this API Call.</param>
		public BeforeRequestEventArgs(AbstractRequestType AbstractRequest)
		{
			mRequest = AbstractRequest;
		}
Exemple #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="AbstractRequest">The <see cref="AbstractRequest"/> for this API Call.</param>
 public BeforeRequestEventArgs(AbstractRequestType AbstractRequest)
 {
     mRequest = AbstractRequest;
 }
Exemple #7
0
 /// <summary>
 /// Sends the Request and returns the Response.
 /// In most cases, you would use the <see cref="Execute"/> method to send the call request to eBay. The
 /// ExecuteRequest method is only used if you need to directly use the actual SOAP request object
 /// that underlies the ApiCall object to make the call (and use the actual underlying SOAP response
 /// object to receive the response). For more information, see
 /// <see href="http://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=616" />
 /// What is the difference between Execute and ExecuteRequest.
 /// </summary>
 /// <param name="Request">The <see cref="AbstractRequestType"/>.</param>
 /// <returns>The <see cref="AbstractResponseType"/>.</returns>
 public AbstractResponseType ExecuteRequest(AbstractRequestType Request)
 {
     AbstractRequest = Request;
     SendRequest();
     return(AbstractResponse);
 }
Exemple #8
0
 public AbstractResponseType ExecuteRequest(AbstractRequestType Request);