Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public TrackingClient(DirectTrackingDetails directTrackingDetails, string key, HttpClient httpClient = null)
 {
     _directTrackingDetails = directTrackingDetails;
     _key        = key;
     _httpClient = httpClient ?? new HttpClient();
 }