1
0

GroupData.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. public UUID GroupID;
  48. public string GroupName;
  49. public bool AllowPublish = true;
  50. public bool MaturePublish = true;
  51. public string Charter;
  52. public UUID FounderID = UUID.Zero;
  53. public UUID GroupPicture = UUID.Zero;
  54. public int MembershipFee = 0;
  55. public bool OpenEnrollment = true;
  56. public bool ShowInList = true;
  57. // Per user data
  58. public bool AcceptNotices = true;
  59. public int Contribution = 0;
  60. public ulong GroupPowers = 0;
  61. public bool Active = false;
  62. public UUID ActiveRole = UUID.Zero;
  63. public bool ListInProfile = false;
  64. public string GroupTitle;
  65. }
  66. public struct GroupTitlesData
  67. {
  68. public string Name;
  69. public UUID UUID;
  70. public bool Selected;
  71. }
  72. public struct GroupProfileData
  73. {
  74. public UUID GroupID;
  75. public string Name;
  76. public string Charter;
  77. public bool ShowInList;
  78. public string MemberTitle;
  79. public ulong PowersMask;
  80. public UUID InsigniaID;
  81. public UUID FounderID;
  82. public int MembershipFee;
  83. public bool OpenEnrollment;
  84. public int Money;
  85. public int GroupMembershipCount;
  86. public int GroupRolesCount;
  87. public bool AllowPublish;
  88. public bool MaturePublish;
  89. public UUID OwnerRole;
  90. }
  91. public struct GroupMembersData
  92. {
  93. public UUID AgentID;
  94. public int Contribution;
  95. public string OnlineStatus;
  96. public ulong AgentPowers;
  97. public string Title;
  98. public bool IsOwner;
  99. public bool ListInProfile;
  100. public bool AcceptNotices;
  101. }
  102. public struct GroupRolesData
  103. {
  104. public UUID RoleID;
  105. public string Name;
  106. public string Title;
  107. public string Description;
  108. public ulong Powers;
  109. public int Members;
  110. }
  111. public struct GroupRoleMembersData
  112. {
  113. public UUID RoleID;
  114. public UUID MemberID;
  115. }
  116. public struct GroupNoticeData
  117. {
  118. public UUID NoticeID;
  119. public uint Timestamp;
  120. public string FromName;
  121. public string Subject;
  122. public bool HasAttachment;
  123. public byte AssetType;
  124. }
  125. public struct GroupVoteHistory
  126. {
  127. public string VoteID;
  128. public string VoteInitiator;
  129. public string Majority;
  130. public string Quorum;
  131. public string TerseDateID;
  132. public string StartDateTime;
  133. public string EndDateTime;
  134. public string VoteType;
  135. public string VoteResult;
  136. public string ProposalText;
  137. }
  138. public struct GroupActiveProposals
  139. {
  140. public string VoteID;
  141. public string VoteInitiator;
  142. public string Majority;
  143. public string Quorum;
  144. public string TerseDateID;
  145. public string StartDateTime;
  146. public string EndDateTime;
  147. public string ProposalText;
  148. }
  149. }