public Task <HttpResponseMessage> Send <TAudienceType>(ProactiveEventRequest <TAudienceType> request) where TAudienceType : AudienceType { if (string.IsNullOrWhiteSpace(request.ReferenceId)) { throw new ArgumentNullException(nameof(request.ReferenceId)); } var content = JObject.FromObject(request).ToString(Formatting.None); return(Client.PostAsync(Client.BaseAddress, new StringContent(content, Encoding.UTF8, "application/json"))); }
public LocaleAttributeList(ProactiveEventRequest proactiveEventRequest) { Request = proactiveEventRequest; }