public IAsyncResult BeginGetExclusiveIncentive(GetExclusiveIncentiveRequest GetExclusiveIncentiveRequest, AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetExclusiveIncentive", new object[1] { (object) GetExclusiveIncentiveRequest }, callback, asyncState); }
public incentiveItem GetExclusiveIncentive(sessionType session, string incentiveId, int? adspaceId) { GetExclusiveIncentiveRequest GetExclusiveIncentiveRequest = new GetExclusiveIncentiveRequest(); DateTime utcNow = DateTime.UtcNow; GetExclusiveIncentiveRequest.nonce = Signature.GetNonce(); GetExclusiveIncentiveRequest.connectId = session.connectId; GetExclusiveIncentiveRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "getexclusiveincentive", GetExclusiveIncentiveRequest.nonce); GetExclusiveIncentiveRequest.timestamp = Signature.GetZDateTime(utcNow); GetExclusiveIncentiveRequest.incentiveId = incentiveId; if (adspaceId.HasValue) { GetExclusiveIncentiveRequest.adspaceId = adspaceId.Value; GetExclusiveIncentiveRequest.adspaceIdSpecified = true; } GetExclusiveIncentiveResponse exclusiveIncentive = this.publisherService.GetExclusiveIncentive(GetExclusiveIncentiveRequest); if (exclusiveIncentive == null) return (incentiveItem) null; else return exclusiveIncentive.incentiveItem; }