public void FriendResponse_Process(int seqid, TProtocol iprot, TProtocol oprot) { FriendResponse_args args = new FriendResponse_args(); args.Read(iprot); iprot.ReadMessageEnd(); FriendResponse_result result = new FriendResponse_result(); try { result.Success = iface_.FriendResponse(args.UserId, args.FriendId, args.CategoryId, args.Accepted, args.Session, args.FriendUsername); } catch (UserException ex) { result.Ex = ex; } catch (SessionException se) { result.Se = se; } oprot.WriteMessageBegin(new TMessage("FriendResponse", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_FriendResponse(string userId, string friendId, int categoryId, bool accepted, Session session, string friendUsername) #endif { oprot_.WriteMessageBegin(new TMessage("FriendResponse", TMessageType.Call, seqid_)); FriendResponse_args args = new FriendResponse_args(); args.UserId = userId; args.FriendId = friendId; args.CategoryId = categoryId; args.Accepted = accepted; args.Session = session; args.FriendUsername = friendUsername; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }