UserProfiles.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System;
  28. using OpenMetaverse;
  29. using System.Collections.Generic;
  30. namespace OpenSim.Framework
  31. {
  32. public class UserClassifiedAdd
  33. {
  34. public UUID ClassifiedId = UUID.Zero;
  35. public UUID CreatorId = UUID.Zero;
  36. public int CreationDate = 0;
  37. public int ExpirationDate = 0;
  38. public int Category = 0;
  39. public string Name = string.Empty;
  40. public string Description = string.Empty;
  41. public UUID ParcelId = UUID.Zero;
  42. public int ParentEstate = 0;
  43. public UUID SnapshotId = UUID.Zero;
  44. public string SimName = string.Empty;
  45. public string GlobalPos = "<0,0,0>";
  46. public string ParcelName = string.Empty;
  47. public byte Flags = 0;
  48. public int Price = 0;
  49. }
  50. public class UserProfileProperties
  51. {
  52. public UUID UserId = UUID.Zero;
  53. public UUID PartnerId = UUID.Zero;
  54. public bool PublishProfile = false;
  55. public bool PublishMature = false;
  56. public string WebUrl = string.Empty;
  57. public int WantToMask = 0;
  58. public string WantToText = string.Empty;
  59. public int SkillsMask = 0;
  60. public string SkillsText = string.Empty;
  61. public string Language = string.Empty;
  62. public UUID ImageId = UUID.Zero;
  63. public string AboutText = string.Empty;
  64. public UUID FirstLifeImageId = UUID.Zero;
  65. public string FirstLifeText = string.Empty;
  66. }
  67. public class UserProfilePick
  68. {
  69. public UUID PickId = UUID.Zero;
  70. public UUID CreatorId = UUID.Zero;
  71. public bool TopPick = false;
  72. public string Name = string.Empty;
  73. public string OriginalName = string.Empty;
  74. public string Desc = string.Empty;
  75. public UUID ParcelId = UUID.Zero;
  76. public UUID SnapshotId = UUID.Zero;
  77. public string ParcelName = string.Empty;
  78. public string SimName = string.Empty;
  79. public string GlobalPos = "<0,0,0>";
  80. public string Gatekeeper = string.Empty;
  81. public int SortOrder = 0;
  82. public bool Enabled = false;
  83. }
  84. public class UserProfileNotes
  85. {
  86. public UUID UserId;
  87. public UUID TargetId;
  88. public string Notes;
  89. }
  90. public class UserPreferences
  91. {
  92. public UUID UserId;
  93. public bool IMViaEmail = false;
  94. public bool Visible = false;
  95. public string EMail = string.Empty;
  96. }
  97. public class UserAccountProperties
  98. {
  99. public string EmailAddress = string.Empty;
  100. public string Firstname = string.Empty;
  101. public string LastName = string.Empty;
  102. public string Password = string.Empty;
  103. public string UserId = string.Empty;
  104. }
  105. public class UserAccountAuth
  106. {
  107. public string UserId = UUID.Zero.ToString();
  108. public string Password = string.Empty;
  109. }
  110. public class UserAppData
  111. {
  112. public string TagId = string.Empty;
  113. public string DataKey = string.Empty;
  114. public string UserId = UUID.Zero.ToString();
  115. public string DataVal = string.Empty;
  116. }
  117. public class UserProfileCacheEntry
  118. {
  119. public Dictionary<UUID, string> picksList;
  120. public Dictionary<UUID, UserProfilePick> picks;
  121. public Dictionary<UUID, string> classifiedsLists;
  122. public Dictionary<UUID, UserClassifiedAdd> classifieds;
  123. public UserProfileProperties props;
  124. public GroupMembershipData[] avatarGroups;
  125. public string born;
  126. public byte[] membershipType;
  127. public uint flags;
  128. public HashSet<IClientAPI> ClientsWaitingProps;
  129. }
  130. }