public void getContacts_Process(int seqid, TProtocol iprot, TProtocol oprot) { getContacts_args args = new getContacts_args(); args.Read(iprot); iprot.ReadMessageEnd(); getContacts_result result = new getContacts_result(); result.Success = iface_.getContacts(); oprot.WriteMessageBegin(new TMessage("getContacts", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List <Contact> recv_getContacts() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getContacts_result result = new getContacts_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getContacts failed: unknown result"); }
public List<Contact> recv_getContacts() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getContacts_result result = new getContacts_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.e) { throw result.E; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getContacts failed: unknown result"); }
public void getContacts_Process(int seqid, TProtocol iprot, TProtocol oprot) { getContacts_args args = new getContacts_args(); args.Read(iprot); iprot.ReadMessageEnd(); getContacts_result result = new getContacts_result(); try { result.Success = iface_.getContacts(args.Ids); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("getContacts", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }