示例#1
0
        internal static ServerMessage SerializeUpdate(MessengerBuddy friend)
        {
            ServerMessage reply = new ServerMessage(Outgoing.FriendUpdate);

            reply.AppendInt32(0); // category
            reply.AppendInt32(1); // number of updates
            reply.AppendInt32(0); // don't know

            friend.Serialize(reply, false);
            reply.AppendBoolean(false);

            return(reply);
        }
示例#2
0
 internal void method_14(uint uint_1)
 {
     this.method_25().GetHabbo().CheckFriendListSize();
     using (DatabaseClient @class = Essential.GetDatabase().GetClient())
     {
         DataRow        dataRow  = @class.ReadDataRow("SELECT username,motto,look,last_online FROM users WHERE Id = '" + uint_1 + "' LIMIT 1");
         int            relation = this.method_25().GetHabbo().getRelation(uint_1);
         MessengerBuddy class2   = new MessengerBuddy(uint_1, dataRow["username"] as string, dataRow["look"] as string, dataRow["motto"] as string, dataRow["last_online"] as string, relation);
         class2.bool_0 = true;
         if (!this.hashtable_0.Contains(class2.UInt32_0))
         {
             this.hashtable_0.Add(class2.UInt32_0, class2);
         }
         this.method_7();
     }
 }