コード例 #1
0
 /// <summary>
 /// Removes one or more objects from one or more campaigns.
 /// </summary>
 /// <param name="campaignIds">A list of the campaign(s) from which objects should be removed.</param>
 /// <param name="searchOptions">The search options.</param>
 public async Task RemoveFromCampaignAsync(IEnumerable <int> campaignIds, ApiSearchOptions searchOptions = null) =>
 await _ontraObjects.RemoveFromCampaignAsync((ApiObjectType)_objectTypeId, campaignIds, searchOptions);
コード例 #2
0
 /// <summary>
 /// Removes an object from a campaign.
 /// </summary>
 /// <param name="id">The id of the object to affect.</param>
 /// <param name="campaignId">The campaign from which the object should be removed.</param>
 public async Task RemoveFromCampaignAsync(int id, int campaignId) =>
 await _ontraObjects.RemoveFromCampaignAsync((ApiObjectType)_objectTypeId, new ApiSearchOptions(id), new[] { campaignId }).ConfigureAwait(false);