示例#1
0
        public TrackingHelper(DirectTrackingDetails directTrackingDetails)
        {
            if (string.IsNullOrEmpty(directTrackingDetails.PartnerId))
            {
                throw new ArgumentException("PartnerId is required", "partnerId");
            }
            if (string.IsNullOrEmpty(directTrackingDetails.Currency))
            {
                throw new ArgumentException("Currency is required", "currency");
            }
            if (string.IsNullOrEmpty(directTrackingDetails.TransactionId))
            {
                throw new ArgumentException("TransactionId is required", "transactionId");
            }

            _directTrackingDetails = directTrackingDetails;
        }
 public TrackingClient(DirectTrackingDetails directTrackingDetails, string key, HttpClient httpClient = null)
 {
     _directTrackingDetails = directTrackingDetails;
     _key        = key;
     _httpClient = httpClient ?? new HttpClient();
 }