public void getRandomAd_Process(int seqid, TProtocol iprot, TProtocol oprot) { getRandomAd_args args = new getRandomAd_args(); args.Read(iprot); iprot.ReadMessageEnd(); getRandomAd_result result = new getRandomAd_result(); try { result.Success = iface_.getRandomAd(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("getRandomAd", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_getRandomAd(string authenticationToken, AdParameters adParameters) { oprot_.WriteMessageBegin(new TMessage("getRandomAd", TMessageType.Call, seqid_)); getRandomAd_args args = new getRandomAd_args(); args.AuthenticationToken = authenticationToken; args.AdParameters = adParameters; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public void send_getRandomAd(string authenticationToken, AdParameters adParameters) #endif { oprot_.WriteMessageBegin(new TMessage("getRandomAd", TMessageType.Call, seqid_)); getRandomAd_args args = new getRandomAd_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 }