Beispiel #1
0
 public void getAds_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     getAds_args args = new getAds_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     getAds_result result = new getAds_result();
     try {
       result.Success = iface_.getAds(args.AuthenticationToken, args.AdParameters);
     } catch (Evernote.EDAM.Error.EDAMUserException userException) {
       result.UserException = userException;
     } catch (Evernote.EDAM.Error.EDAMSystemException systemException) {
       result.SystemException = systemException;
     }
     oprot.WriteMessageBegin(new TMessage("getAds", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Beispiel #2
0
 public void send_getAds(string authenticationToken, AdParameters adParameters)
 {
     oprot_.WriteMessageBegin(new TMessage("getAds", TMessageType.Call, seqid_));
     getAds_args args = new getAds_args();
     args.AuthenticationToken = authenticationToken;
     args.AdParameters = adParameters;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
 public void send_getAds(string authenticationToken, AdParameters adParameters)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("getAds", TMessageType.Call, seqid_));
   getAds_args args = new getAds_args();
   args.AuthenticationToken = authenticationToken;
   args.AdParameters = adParameters;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT || NETFX_CORE
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }