public void send_getDownloads(long start, int size, string language, string country) #endif { oprot_.WriteMessageBegin(new TMessage("getDownloads", TMessageType.Call, seqid_)); getDownloads_args args = new getDownloads_args(); args.Start = start; args.Size = size; args.Language = language; args.Country = country; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void getDownloads_Process(int seqid, TProtocol iprot, TProtocol oprot) { getDownloads_args args = new getDownloads_args(); args.Read(iprot); iprot.ReadMessageEnd(); getDownloads_result result = new getDownloads_result(); try { result.Success = iface_.getDownloads(args.Start, args.Size, args.Language, args.Country); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("getDownloads", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }