From 7e95783dd3fbeb7d93885e85606adc74d73e567e Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 16 Apr 2009 00:15:57 +0000 Subject: [PATCH] Expose the GroupRecord and it's accessor API --- OpenSim/Framework/GroupData.cs | 15 +++++++++++++++ .../Region/Framework/Interfaces/IGroupsModule.cs | 10 +--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/OpenSim/Framework/GroupData.cs b/OpenSim/Framework/GroupData.cs index 178193ed72..28d1639c53 100644 --- a/OpenSim/Framework/GroupData.cs +++ b/OpenSim/Framework/GroupData.cs @@ -30,6 +30,21 @@ using OpenMetaverse; namespace OpenSim.Framework { + public class GroupRecord + { + public UUID GroupID; + public string GroupName; + public bool AllowPublish = true; + public bool MaturePublish = true; + public string Charter; + public UUID FounderID = UUID.Zero; + public UUID GroupPicture = UUID.Zero; + public int MembershipFee = 0; + public bool OpenEnrollment = true; + public UUID OwnerRoleID = UUID.Zero; + public bool ShowInList = false; + } + public class GroupMembershipData { // Group base data diff --git a/OpenSim/Region/Framework/Interfaces/IGroupsModule.cs b/OpenSim/Region/Framework/Interfaces/IGroupsModule.cs index 85b8cac461..69359243cb 100644 --- a/OpenSim/Region/Framework/Interfaces/IGroupsModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IGroupsModule.cs @@ -64,14 +64,6 @@ namespace OpenSim.Region.Framework.Interfaces void LeaveGroupRequest(IClientAPI remoteClient, UUID GroupID); void EjectGroupMemberRequest(IClientAPI remoteClient, UUID GroupID, UUID EjecteeID); void InviteGroupRequest(IClientAPI remoteClient, UUID GroupID, UUID InviteeID, UUID RoleID); - - - /// - /// Retrieve group profile. - /// - /// - /// - /// False if group does not exist - bool GetGroupProfile(UUID GroupID, out GroupProfileData GroupProfile); + GroupRecord GetGroupRecord(UUID GroupID); } }