예제 #1
0
        private static void smethod_0(Session session_0, ClientMessage clientMessage_0)
        {
            ReadOnlyCollection <uint> friends = session_0.LaptopFriendCache.Friends;
            List <uint> requests = new List <uint>();

            using (SqlDatabaseClient client = SqlDatabaseManager.GetClient())
            {
                requests = GetFriendsForUser(client, session_0.CharacterId, 0);
            }
            session_0.SendData(LaptopFriendListComposer.Compose(friends, requests), false);
        }
예제 #2
0
 private static void LoadFriends(Session Session, ClientMessage Message)
 {
     try
     {
         ReadOnlyCollection <uint> friends = Session.LaptopFriendCache.Friends;
         List <uint> requests = new List <uint>();
         using (SqlDatabaseClient client = SqlDatabaseManager.GetClient())
         {
             requests = GetFriendsForUser(client, Session.CharacterId, 0);
         }
         Session.SendData(LaptopFriendListComposer.Compose(friends, requests));
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
     }
 }