public void updateDeviceInfo_Process(int seqid, TProtocol iprot, TProtocol oprot) { updateDeviceInfo_args args = new updateDeviceInfo_args(); args.Read(iprot); iprot.ReadMessageEnd(); updateDeviceInfo_result result = new updateDeviceInfo_result(); try { iface_.updateDeviceInfo(args.DeviceUid, args.DeviceInfo); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("updateDeviceInfo", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_updateDeviceInfo() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } updateDeviceInfo_result result = new updateDeviceInfo_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.e) { throw result.E; } return; }