public void recv_reportSpammer() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } reportSpammer_result result = new reportSpammer_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.e) { throw result.E; } return; }
public void reportSpammer_Process(int seqid, TProtocol iprot, TProtocol oprot) { reportSpammer_args args = new reportSpammer_args(); args.Read(iprot); iprot.ReadMessageEnd(); reportSpammer_result result = new reportSpammer_result(); try { iface_.reportSpammer(args.SpammerMid, args.SpammerReasons, args.SpamMessageIds); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("reportSpammer", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }