GroupData.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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 OpenMetaverse;
  28. namespace OpenSim.Framework
  29. {
  30. public class GroupRecord
  31. {
  32. public UUID GroupID;
  33. public string GroupName;
  34. public bool AllowPublish = true;
  35. public bool MaturePublish = true;
  36. public string Charter;
  37. public UUID FounderID = UUID.Zero;
  38. public UUID GroupPicture = UUID.Zero;
  39. public int MembershipFee = 0;
  40. public bool OpenEnrollment = true;
  41. public UUID OwnerRoleID = UUID.Zero;
  42. public bool ShowInList = false;
  43. }
  44. public class GroupMembershipData
  45. {
  46. // Group base data
  47. //
  48. public UUID GroupID;
  49. public string GroupName;
  50. public bool AllowPublish = true;
  51. public bool MaturePublish = true;
  52. public string Charter;
  53. public UUID FounderID = UUID.Zero;
  54. public UUID GroupPicture = UUID.Zero;
  55. public int MembershipFee = 0;
  56. public bool OpenEnrollment = true;
  57. public bool ShowInList = true;
  58. // Per user data
  59. //
  60. public bool AcceptNotices = true;
  61. public int Contribution = 0;
  62. public ulong GroupPowers = 0;
  63. public bool Active = false;
  64. public UUID ActiveRole = UUID.Zero;
  65. public bool ListInProfile = false;
  66. public string GroupTitle;
  67. }
  68. public struct GroupTitlesData
  69. {
  70. public string Name;
  71. public UUID UUID;
  72. public bool Selected;
  73. }
  74. public struct GroupProfileData
  75. {
  76. public UUID GroupID;
  77. public string Name;
  78. public string Charter;
  79. public bool ShowInList;
  80. public string MemberTitle;
  81. public ulong PowersMask;
  82. public UUID InsigniaID;
  83. public UUID FounderID;
  84. public int MembershipFee;
  85. public bool OpenEnrollment;
  86. public int Money;
  87. public int GroupMembershipCount;
  88. public int GroupRolesCount;
  89. public bool AllowPublish;
  90. public bool MaturePublish;
  91. public UUID OwnerRole;
  92. }
  93. public struct GroupMembersData
  94. {
  95. public UUID AgentID;
  96. public int Contribution;
  97. public string OnlineStatus;
  98. public ulong AgentPowers;
  99. public string Title;
  100. public bool IsOwner;
  101. public bool ListInProfile;
  102. public bool AcceptNotices;
  103. }
  104. public struct GroupRolesData
  105. {
  106. public UUID RoleID;
  107. public string Name;
  108. public string Title;
  109. public string Description;
  110. public ulong Powers;
  111. public int Members;
  112. }
  113. public struct GroupRoleMembersData
  114. {
  115. public UUID RoleID;
  116. public UUID MemberID;
  117. }
  118. public struct GroupNoticeData
  119. {
  120. public UUID NoticeID;
  121. public uint Timestamp;
  122. public string FromName;
  123. public string Subject;
  124. public bool HasAttachment;
  125. public byte AssetType;
  126. }
  127. }