diff options
Diffstat (limited to 'OpenSim/Framework/GroupData.cs')
-rw-r--r-- | OpenSim/Framework/GroupData.cs | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/OpenSim/Framework/GroupData.cs b/OpenSim/Framework/GroupData.cs new file mode 100644 index 0000000..815946c --- /dev/null +++ b/OpenSim/Framework/GroupData.cs | |||
@@ -0,0 +1,162 @@ | |||
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 | |||
28 | |||
29 | using OpenMetaverse; | ||
30 | |||
31 | namespace OpenSim.Framework | ||
32 | { | ||
33 | public class GroupRecord | ||
34 | { | ||
35 | public UUID GroupID; | ||
36 | public string GroupName; | ||
37 | public bool AllowPublish = true; | ||
38 | public bool MaturePublish = true; | ||
39 | public string Charter; | ||
40 | public UUID FounderID = UUID.Zero; | ||
41 | public UUID GroupPicture = UUID.Zero; | ||
42 | public int MembershipFee = 0; | ||
43 | public bool OpenEnrollment = true; | ||
44 | public UUID OwnerRoleID = UUID.Zero; | ||
45 | public bool ShowInList = false; | ||
46 | } | ||
47 | |||
48 | public class GroupMembershipData | ||
49 | { | ||
50 | // Group base data | ||
51 | public UUID GroupID; | ||
52 | public string GroupName; | ||
53 | public bool AllowPublish = true; | ||
54 | public bool MaturePublish = true; | ||
55 | public string Charter; | ||
56 | public UUID FounderID = UUID.Zero; | ||
57 | public UUID GroupPicture = UUID.Zero; | ||
58 | public int MembershipFee = 0; | ||
59 | public bool OpenEnrollment = true; | ||
60 | public bool ShowInList = true; | ||
61 | |||
62 | // Per user data | ||
63 | public bool AcceptNotices = true; | ||
64 | public int Contribution = 0; | ||
65 | public ulong GroupPowers = 0; | ||
66 | public bool Active = false; | ||
67 | public UUID ActiveRole = UUID.Zero; | ||
68 | public bool ListInProfile = false; | ||
69 | public string GroupTitle; | ||
70 | } | ||
71 | |||
72 | public struct GroupTitlesData | ||
73 | { | ||
74 | public string Name; | ||
75 | public UUID UUID; | ||
76 | public bool Selected; | ||
77 | } | ||
78 | |||
79 | public struct GroupProfileData | ||
80 | { | ||
81 | public UUID GroupID; | ||
82 | public string Name; | ||
83 | public string Charter; | ||
84 | public bool ShowInList; | ||
85 | public string MemberTitle; | ||
86 | public ulong PowersMask; | ||
87 | public UUID InsigniaID; | ||
88 | public UUID FounderID; | ||
89 | public int MembershipFee; | ||
90 | public bool OpenEnrollment; | ||
91 | public int Money; | ||
92 | public int GroupMembershipCount; | ||
93 | public int GroupRolesCount; | ||
94 | public bool AllowPublish; | ||
95 | public bool MaturePublish; | ||
96 | public UUID OwnerRole; | ||
97 | } | ||
98 | |||
99 | public struct GroupMembersData | ||
100 | { | ||
101 | public UUID AgentID; | ||
102 | public int Contribution; | ||
103 | public string OnlineStatus; | ||
104 | public ulong AgentPowers; | ||
105 | public string Title; | ||
106 | public bool IsOwner; | ||
107 | public bool ListInProfile; | ||
108 | public bool AcceptNotices; | ||
109 | } | ||
110 | |||
111 | public struct GroupRolesData | ||
112 | { | ||
113 | public UUID RoleID; | ||
114 | public string Name; | ||
115 | public string Title; | ||
116 | public string Description; | ||
117 | public ulong Powers; | ||
118 | public int Members; | ||
119 | } | ||
120 | |||
121 | public struct GroupRoleMembersData | ||
122 | { | ||
123 | public UUID RoleID; | ||
124 | public UUID MemberID; | ||
125 | } | ||
126 | |||
127 | public struct GroupNoticeData | ||
128 | { | ||
129 | public UUID NoticeID; | ||
130 | public uint Timestamp; | ||
131 | public string FromName; | ||
132 | public string Subject; | ||
133 | public bool HasAttachment; | ||
134 | public byte AssetType; | ||
135 | } | ||
136 | |||
137 | public struct GroupVoteHistory | ||
138 | { | ||
139 | public string VoteID; | ||
140 | public string VoteInitiator; | ||
141 | public string Majority; | ||
142 | public string Quorum; | ||
143 | public string TerseDateID; | ||
144 | public string StartDateTime; | ||
145 | public string EndDateTime; | ||
146 | public string VoteType; | ||
147 | public string VoteResult; | ||
148 | public string ProposalText; | ||
149 | } | ||
150 | |||
151 | public struct GroupActiveProposals | ||
152 | { | ||
153 | public string VoteID; | ||
154 | public string VoteInitiator; | ||
155 | public string Majority; | ||
156 | public string Quorum; | ||
157 | public string TerseDateID; | ||
158 | public string StartDateTime; | ||
159 | public string EndDateTime; | ||
160 | public string ProposalText; | ||
161 | } | ||
162 | } | ||