public void setNotificationsEnabled_Process(int seqid, TProtocol iprot, TProtocol oprot) { setNotificationsEnabled_args args = new setNotificationsEnabled_args(); args.Read(iprot); iprot.ReadMessageEnd(); setNotificationsEnabled_result result = new setNotificationsEnabled_result(); try { iface_.setNotificationsEnabled(args.ReqSeq, args.Type, args.Target, args.Enablement); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("setNotificationsEnabled", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_setNotificationsEnabled() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } setNotificationsEnabled_result result = new setNotificationsEnabled_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.e) { throw result.E; } return; }