Esempio n. 1
0
 /// <inheritdoc/>
 public ReadOnlyCollection <object> GetAds(GetAdsParams getAdsParams)
 {
     return(_vk.Call <ReadOnlyCollection <object> >("ads.getAds",
                                                    new VkParameters
     {
         { "account_id", getAdsParams.AccountId }, { "campaign_ids", getAdsParams.CampaignIds },
         { "ad_ids", getAdsParams.AdIds }, { "client_id", getAdsParams.ClientId },
         { "include_deleted", getAdsParams.IncludeDeleted }, { "limit", getAdsParams.Limit }, { "offset", getAdsParams.Offset }
     }));
 }
Esempio n. 2
0
 /// <inheritdoc/>
 public ReadOnlyCollection <Ad> GetAds(GetAdsParams getAdsParams)
 {
     return(_vk.Call <ReadOnlyCollection <Ad> >("ads.getAds",
                                                new VkParameters
     {
         { "account_id", getAdsParams.AccountId },
         { "campaign_ids", getAdsParams.CampaignIds != null ? "[" + string.Join(",", getAdsParams.CampaignIds) + "]" : null },
         { "ad_ids", getAdsParams.AdIds != null ? "[" + string.Join(",", getAdsParams.AdIds) + "]" : null },
         { "client_id", getAdsParams.ClientId },
         { "include_deleted", getAdsParams.IncludeDeleted },
         { "limit", getAdsParams.Limit },
         { "offset", getAdsParams.Offset }
     }));
 }
Esempio n. 3
0
 /// <inheritdoc/>
 public async Task <ReadOnlyCollection <object> > GetAdsAsync(GetAdsParams getAdsParams)
 {
     return(await TypeHelper.TryInvokeMethodAsync(() => GetAds(getAdsParams)));
 }
Esempio n. 4
0
 /// <inheritdoc/>
 public Task <ReadOnlyCollection <Ad> > GetAdsAsync(GetAdsParams getAdsParams)
 {
     return(TypeHelper.TryInvokeMethodAsync(() => GetAds(getAdsParams)));
 }