GroupData.cs 3.9 KB

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