public async Task CreateOrUpdateCampaignSettingsAsync(string campaignId, CampaignSettingsCreateOrUpdateRequest request)
 {
     await _api.CreateOrUpdateCampaignSettingsAsync(campaignId, request);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates or updates common campaign settings
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='campaignId'>
 /// Campaign identitfier
 /// </param>
 /// <param name='request'>
 /// </param>
 public static void CreateOrUpdateCampaignSettings(this IIcoCommonAPI operations, string campaignId, CampaignSettingsCreateOrUpdateRequest request = default(CampaignSettingsCreateOrUpdateRequest))
 {
     operations.CreateOrUpdateCampaignSettingsAsync(campaignId, request).GetAwaiter().GetResult();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates or updates common campaign settings
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='campaignId'>
 /// Campaign identitfier
 /// </param>
 /// <param name='request'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task CreateOrUpdateCampaignSettingsAsync(this IIcoCommonAPI operations, string campaignId, CampaignSettingsCreateOrUpdateRequest request = default(CampaignSettingsCreateOrUpdateRequest), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.CreateOrUpdateCampaignSettingsWithHttpMessagesAsync(campaignId, request, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
        public async Task CreateOrUpdateCampaignSettings([FromRoute] string campaignId, [FromBody] CampaignSettingsCreateOrUpdateRequest request)
        {
            await _campaignSettingsRepository.UpsertAsync(campaignId, request.CampaignSettings, request.Username);

            await _log.WriteInfoAsync(nameof(CreateOrUpdateCampaignSettings), request.ToJson(),
                                      "Campaign updated");
        }