Esempio n. 1
0
 public IAsyncResult BeginGetProgramApplications(GetProgramApplicationsRequest GetProgramApplicationsRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("GetProgramApplications", new object[1]
       {
     (object) GetProgramApplicationsRequest
       }, callback, asyncState);
 }
Esempio n. 2
0
 public List<programApplicationItem> GetProgramApplications(sessionType session, int? adspaceId, int? programId, programApplicationStatusEnum? status, int items, int page, out int total)
 {
     GetProgramApplicationsRequest GetProgramApplicationsRequest = new GetProgramApplicationsRequest();
       DateTime utcNow = DateTime.UtcNow;
       GetProgramApplicationsRequest.nonce = Signature.GetNonce();
       GetProgramApplicationsRequest.connectId = session.connectId;
       GetProgramApplicationsRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "getprogramapplications", GetProgramApplicationsRequest.nonce);
       GetProgramApplicationsRequest.timestamp = Signature.GetZDateTime(utcNow);
       if (adspaceId.HasValue)
       {
     GetProgramApplicationsRequest.adspaceId = adspaceId.Value;
     GetProgramApplicationsRequest.adspaceIdSpecified = true;
       }
       if (programId.HasValue)
       {
     GetProgramApplicationsRequest.programId = programId.Value;
     GetProgramApplicationsRequest.programIdSpecified = true;
       }
       if (status.HasValue)
       {
     GetProgramApplicationsRequest.status = status.Value;
     GetProgramApplicationsRequest.statusSpecified = true;
       }
       GetProgramApplicationsRequest.page = page;
       GetProgramApplicationsRequest.pageSpecified = true;
       GetProgramApplicationsRequest.items = items;
       GetProgramApplicationsRequest.itemsSpecified = true;
       GetProgramApplicationsResponse programApplications = this.publisherService.GetProgramApplications(GetProgramApplicationsRequest);
       if (programApplications == null)
       {
     total = 0;
     return (List<programApplicationItem>) null;
       }
       else if (programApplications.programApplicationItems == null)
       {
     total = 0;
     return (List<programApplicationItem>) null;
       }
       else
       {
     total = (int) programApplications.total;
     return Enumerable.ToList<programApplicationItem>((IEnumerable<programApplicationItem>) programApplications.programApplicationItems);
       }
 }