UserProfileData.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using libsecondlife;
  5. namespace OpenGrid.Framework.Data
  6. {
  7. public class UserProfileData
  8. {
  9. public LLUUID UUID;
  10. public string username; // The configurable part of the users username
  11. public string surname; // The users surname (can be used to indicate user class - eg 'Test User' or 'Test Admin')
  12. public string passwordHash; // Hash of the users password
  13. public string passwordSalt; // Salt for the users password
  14. public ulong homeRegion; // RegionHandle of home
  15. public LLVector3 homeLocation; // Home Location inside the sim
  16. public LLVector3 homeLookAt; // Coordinates where the user is looking
  17. public int created; // UNIX Epoch Timestamp (User Creation)
  18. public int lastLogin; // UNIX Epoch Timestamp (Last Login Time)
  19. public string userInventoryURI; // URI to inventory server for this user
  20. public string userAssetURI; // URI to asset server for this user
  21. public uint profileCanDoMask; // Profile window "I can do" mask
  22. public uint profileWantDoMask; // Profile window "I want to" mask
  23. public string profileAboutText; // My about window text
  24. public string profileFirstText; // First Life Text
  25. public LLUUID profileImage; // My avatars profile image
  26. public LLUUID profileFirstImage; // First-life image
  27. public UserAgentData currentAgent; // The users last agent
  28. }
  29. public class UserAgentData
  30. {
  31. public LLUUID UUID; // Account ID
  32. public string agentIP; // The IP of the agent
  33. public uint agentPort; // The port of the agent
  34. public bool agentOnline; // The online status of the agent
  35. public LLUUID sessionID; // The session ID for the agent (used by client)
  36. public LLUUID secureSessionID; // The secure session ID for the agent (used by client)
  37. public LLUUID regionID; // The region ID the agent occupies
  38. public int loginTime; // EPOCH based Timestamp
  39. public int logoutTime; // Timestamp or 0 if N/A
  40. public LLUUID currentRegion; // UUID of the users current region
  41. public ulong currentHandle; // RegionHandle of the users current region
  42. public LLVector3 currentPos; // Current position in the region
  43. }
  44. }