public IAsyncResult BeginGetIncentive(GetIncentiveRequest GetIncentiveRequest, AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetIncentive", new object[1] { (object) GetIncentiveRequest }, callback, asyncState); }
public incentiveItem GetIncentive(sessionType session, string incentiveId, int? adspaceId) { GetIncentiveRequest GetIncentiveRequest = new GetIncentiveRequest(); GetIncentiveRequest.connectId = session.connectId; GetIncentiveRequest.incentiveId = incentiveId; if (adspaceId.HasValue) { GetIncentiveRequest.adspaceId = adspaceId.Value; GetIncentiveRequest.adspaceIdSpecified = true; } GetIncentiveResponse incentive = this.publisherService.GetIncentive(GetIncentiveRequest); if (incentive == null) return (incentiveItem) null; else return incentive.incentiveItem; }