示例#1
0
        internal void method_0(UserDataFactory class12_0)
        {
            this.hashtable_0 = new Hashtable();

            DataTable dataTable_ = class12_0.GetFriends();

            if (dataTable_ != null)
            {
                int status = 0;
                foreach (DataRow dataRow in dataTable_.Rows)
                {
                    if (!this.hashtable_0.Contains((uint)dataRow["Id"]))
                    {
                        if (class12_0.getRelation((uint)dataRow["Id"]) != null)
                        {
                            status = (int)class12_0.getRelation((uint)dataRow["Id"]).relationshipStatus;
                        }
                        else
                        {
                            status = 0;
                        }

                        this.hashtable_0.Add((uint)dataRow["Id"], new MessengerBuddy((uint)dataRow["Id"], dataRow["username"] as string, dataRow["look"] as string, dataRow["motto"] as string, dataRow["last_online"] as string, status));
                    }
                }
                try
                {
                    if (this.method_25().GetHabbo().HasFuse("receive_sa"))
                    {
                        this.hashtable_0.Add(0, new MessengerBuddy(0u, "Staff Chat", this.method_25().GetHabbo().Figure, "Staff Chat Room", "0", 1));
                    }
                }
                catch
                {
                }
            }
        }