public void addContacts_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            addContacts_args args = new addContacts_args();

            args.Read(iprot);
            iprot.ReadMessageEnd();
            addContacts_result result = new addContacts_result();

            result.Success = iface_.addContacts(args.Contacts);
            oprot.WriteMessageBegin(new TMessage("addContacts", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
        public List <Contact> recv_addContacts()
        {
            TMessage msg = iprot_.ReadMessageBegin();

            if (msg.Type == TMessageType.Exception)
            {
                TApplicationException x = TApplicationException.Read(iprot_);
                iprot_.ReadMessageEnd();
                throw x;
            }
            addContacts_result result = new addContacts_result();

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "addContacts failed: unknown result");
        }