Some interface and data structure changes, add the missing method in friends

slimupdates
Melanie 2010-02-04 10:51:36 +00:00
parent 11ed5dee3b
commit f9a61f2825
3 changed files with 17 additions and 3 deletions

View File

@ -35,8 +35,8 @@ namespace OpenSim.Data
public class FriendsData
{
public UUID PrincipalID;
public string FriendID;
public string Flags;
public string Friend;
public Dictionary<string, string> Data;
}
/// <summary>

View File

@ -40,7 +40,7 @@ using OpenSim.Framework.Communications;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
using OpenSim.Services.Interfaces;
using GridRegion = OpenSim.Services.Interfaces.GridRegion;
using FriendInfo = OpenSim.Region.Framework.Interfaces.FriendInfo;
namespace OpenSim.Region.CoreModules.Avatar.Friends
{
@ -88,5 +88,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
{
return 1;
}
public FriendInfo[] GetFriends(UUID PrincipalID)
{
return new FriendInfo[0];
}
}
}

View File

@ -31,6 +31,14 @@ using System.Collections.Generic;
namespace OpenSim.Region.Framework.Interfaces
{
public struct FriendInfo
{
public UUID PrincipalID;
public string Friend;
int MyRights;
int TheirRights;
}
public interface IFriendsModule
{
/// <summary>
@ -47,5 +55,6 @@ namespace OpenSim.Region.Framework.Interfaces
/// <param name="offerMessage"></param>
void OfferFriendship(UUID fromUserId, IClientAPI toUserClient, string offerMessage);
uint GetFriendPerms(UUID PrincipalID, UUID FriendID);
FriendInfo[] GetFriends(UUID PrincipalID);
}
}