public void getFriendList_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getFriendList_args args = new getFriendList_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getFriendList_result result = new getFriendList_result();
   try {
     result.Success = iface_.getFriendList(args.UserId, args.PageIndex, args.PageSize, args.Session);
   } catch (UserException ex) {
     result.Ex = ex;
   } catch (SessionException se) {
     result.Se = se;
   }
   oprot.WriteMessageBegin(new TMessage("getFriendList", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
 public void send_getFriendList(int userId, short pageIndex, short pageSize, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("getFriendList", TMessageType.Call, seqid_));
   getFriendList_args args = new getFriendList_args();
   args.UserId = userId;
   args.PageIndex = pageIndex;
   args.PageSize = pageSize;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }