public void deleteGroup_Process(int seqid, TProtocol iprot, TProtocol oprot) { deleteGroup_args args = new deleteGroup_args(); args.Read(iprot); iprot.ReadMessageEnd(); deleteGroup_result result = new deleteGroup_result(); try { result.Success = iface_.deleteGroup(args.UserId, args.GroupList, args.Session); } catch (ChatGroupException ex) { result.Ex = ex; } catch (SessionException se) { result.Se = se; } oprot.WriteMessageBegin(new TMessage("deleteGroup", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_deleteGroup(string userId, List<string> groupList, Session session) #endif { oprot_.WriteMessageBegin(new TMessage("deleteGroup", TMessageType.Call, seqid_)); deleteGroup_args args = new deleteGroup_args(); args.UserId = userId; args.GroupList = groupList; args.Session = session; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }