コード例 #1
0
 public IAsyncResult BeginDeleteProgramApplication(DeleteProgramApplicationRequest DeleteProgramApplicationRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("DeleteProgramApplication", new object[1]
       {
     (object) DeleteProgramApplicationRequest
       }, callback, asyncState);
 }
コード例 #2
0
 public int DeleteProgramApplication(sessionType session, int adspaceId, int programId)
 {
     DeleteProgramApplicationRequest DeleteProgramApplicationRequest = new DeleteProgramApplicationRequest();
       DateTime utcNow = DateTime.UtcNow;
       DeleteProgramApplicationRequest.nonce = Signature.GetNonce();
       DeleteProgramApplicationRequest.connectId = session.connectId;
       DeleteProgramApplicationRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "deleteprogramapplication", DeleteProgramApplicationRequest.nonce);
       DeleteProgramApplicationRequest.timestamp = Signature.GetZDateTime(utcNow);
       DeleteProgramApplicationRequest.adspaceId = adspaceId;
       DeleteProgramApplicationRequest.programId = programId;
       DeleteProgramApplicationResponse applicationResponse = this.publisherService.DeleteProgramApplication(DeleteProgramApplicationRequest);
       if (applicationResponse == null)
     return 0;
       else
     return applicationResponse.count;
 }