Guest User

Untitled

a guest
Jan 22nd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.75 KB | None | 0 0
  1.   #region Structure Of Database Table Users Of Holo
  2.         public enum HoloStructure
  3.         {
  4.             fID,
  5.             fName,
  6.             fRank,
  7.             fEmail,
  8.             fUserDateOfBirth,
  9.             fHabboDateOfBirth,
  10.             Figure,
  11.             Sex,
  12.             Mission,
  13.             ConsoleMission,
  14.             Credits,
  15.             Tickets,
  16.             Badge_status,
  17.             Last_Visit,
  18.             Figure_Swim,
  19.             Ticket_SSO,
  20.             IPAddress_Last,
  21.             Battleball_TotalPoints,
  22.             Bataball_PlayedGames,
  23.             RoomID,
  24.             Last_Gift,
  25.             Visibillty,
  26.             Hc_Before,
  27.             Newsletter,
  28.             GuideAvailable,
  29.             ShockWaveID,
  30.             Guide,
  31.             GuideAllowed,
  32.             Window,
  33.             LastLogin,
  34.             CreditCheck,
  35.             CreditGivenTime
  36.         }
  37.         List<User_Details> HoloStructureCache;
  38.         #endregion
  39.  
  40.         #region Holograph Structure Input
  41.         User_Details()
  42.         {          
  43.             foreach (DataRow HoloStructureInfo in ServerEnvironment.SQLReactor().ReadDataTable("SELECT * FROM users WHERE id = '" + HoloStructure.fID + "'").Rows)
  44.             {
  45.                 HoloStructureCache = new List<User_Details>();
  46.                                                             /*Get ID using Enum and Row*/       /*Get Name using Enum and Row*/
  47.                 HoloStructureCache.Add(new User_Details((HoloStructure)HoloStructureInfo["id"], (HoloStructure)HoloStructureInfo["name"]));
  48.             }
  49.         }
  50.  
  51.         User_Details(HoloStructure ID, HoloStructure Name)
  52.         {
  53.             ID = HoloStructure.fID;
  54.             Name = HoloStructure.fName;
  55.         }
  56.         #endregion
Add Comment
Please, Sign In to add comment