C# Class Universe.Modules.Friends.FriendsModule

Inheritance: INonSharedRegionModule, IFriendsModule
Show file Open project: Virtual-Universe/Virtual-Universe

Public Properties

Property Type Description
m_enabled bool

Protected Properties

Property Type Description
m_FriendOnlineStatuses List>.Dictionary
m_Friends List>.Dictionary
m_firstStart bool
m_scene IScene

Public Methods

Method Description
AddRegion ( IScene scene ) : void
Close ( ) : void
GetFriendPerms ( UUID principalID, UUID friendID ) : int
GetFriends ( UUID agentID ) : FriendInfo[]
Initialize ( IConfigSource config ) : void
LocalFriendshipApproved ( UUID userID, string name, IClientAPI us, UUID friendID ) : bool
LocalFriendshipDenied ( UUID userID, string userName, UUID friendID ) : bool
LocalFriendshipOffered ( UUID toID, GridInstantMessage im ) : bool
LocalFriendshipTerminated ( UUID exfriendID, UUID terminatingUser ) : bool
LocalGrantRights ( UUID userID, UUID friendID, int userFlags, int rights ) : bool
LocateClientObject ( UUID agentID ) : IClientAPI

Find the client for a ID

OfflineFriendRequest ( IClientAPI client ) : void
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
SendFriendsStatusMessage ( UUID FriendToInformID, UUID userIDs, bool online ) : void

Protected Methods

Method Description
ForwardFriendshipOffer ( UUID agentID, UUID friendID, GridInstantMessage im ) : void
MakeRootAgent ( IScenePresence presence ) : void
OnApproveFriendRequest ( IClientAPI client, UUID agentID, UUID friendID, List callingCardFolders ) : void
OnClosingClient ( IClientAPI client ) : void
OnDenyFriendRequest ( IClientAPI client, UUID agentID, UUID friendID, List callingCardFolders ) : void
OnGrantUserRights ( IClientAPI remoteClient, UUID requester, UUID target, int rights ) : void
OnInstantMessage ( IClientAPI client, GridInstantMessage im ) : void
OnMessageReceived ( OSDMap message ) : OSDMap
OnNewClient ( IClientAPI client ) : void
OnTerminateFriendship ( IClientAPI client, UUID agentID, UUID exfriendID ) : void
UpdateCachedInfo ( UUID agentID, CachedUserInfo info ) : void
UpdateFriendsCache ( UUID agentID ) : void

Method Details

AddRegion() public method

public AddRegion ( IScene scene ) : void
scene IScene
return void

Close() public method

public Close ( ) : void
return void

ForwardFriendshipOffer() protected method

protected ForwardFriendshipOffer ( UUID agentID, UUID friendID, GridInstantMessage im ) : void
agentID UUID
friendID UUID
im Universe.Framework.ClientInterfaces.GridInstantMessage
return void

GetFriendPerms() public method

public GetFriendPerms ( UUID principalID, UUID friendID ) : int
principalID UUID
friendID UUID
return int

GetFriends() public method

public GetFriends ( UUID agentID ) : FriendInfo[]
agentID UUID
return FriendInfo[]

Initialize() public method

public Initialize ( IConfigSource config ) : void
config IConfigSource
return void

LocalFriendshipApproved() public method

public LocalFriendshipApproved ( UUID userID, string name, IClientAPI us, UUID friendID ) : bool
userID UUID
name string
us IClientAPI
friendID UUID
return bool

LocalFriendshipDenied() public method

public LocalFriendshipDenied ( UUID userID, string userName, UUID friendID ) : bool
userID UUID
userName string
friendID UUID
return bool

LocalFriendshipOffered() public method

public LocalFriendshipOffered ( UUID toID, GridInstantMessage im ) : bool
toID UUID
im Universe.Framework.ClientInterfaces.GridInstantMessage
return bool

LocalFriendshipTerminated() public method

public LocalFriendshipTerminated ( UUID exfriendID, UUID terminatingUser ) : bool
exfriendID UUID
terminatingUser UUID
return bool

LocalGrantRights() public method

public LocalGrantRights ( UUID userID, UUID friendID, int userFlags, int rights ) : bool
userID UUID
friendID UUID
userFlags int
rights int
return bool

LocateClientObject() public method

Find the client for a ID
public LocateClientObject ( UUID agentID ) : IClientAPI
agentID UUID
return IClientAPI

MakeRootAgent() protected method

protected MakeRootAgent ( IScenePresence presence ) : void
presence IScenePresence
return void

OfflineFriendRequest() public method

public OfflineFriendRequest ( IClientAPI client ) : void
client IClientAPI
return void

OnApproveFriendRequest() protected method

protected OnApproveFriendRequest ( IClientAPI client, UUID agentID, UUID friendID, List callingCardFolders ) : void
client IClientAPI
agentID UUID
friendID UUID
callingCardFolders List
return void

OnClosingClient() protected method

protected OnClosingClient ( IClientAPI client ) : void
client IClientAPI
return void

OnDenyFriendRequest() protected method

protected OnDenyFriendRequest ( IClientAPI client, UUID agentID, UUID friendID, List callingCardFolders ) : void
client IClientAPI
agentID UUID
friendID UUID
callingCardFolders List
return void

OnGrantUserRights() protected method

protected OnGrantUserRights ( IClientAPI remoteClient, UUID requester, UUID target, int rights ) : void
remoteClient IClientAPI
requester UUID
target UUID
rights int
return void

OnInstantMessage() protected method

protected OnInstantMessage ( IClientAPI client, GridInstantMessage im ) : void
client IClientAPI
im GridInstantMessage
return void

OnMessageReceived() protected method

protected OnMessageReceived ( OSDMap message ) : OSDMap
message OSDMap
return OSDMap

OnNewClient() protected method

protected OnNewClient ( IClientAPI client ) : void
client IClientAPI
return void

OnTerminateFriendship() protected method

protected OnTerminateFriendship ( IClientAPI client, UUID agentID, UUID exfriendID ) : void
client IClientAPI
agentID UUID
exfriendID UUID
return void

RegionLoaded() public method

public RegionLoaded ( IScene scene ) : void
scene IScene
return void

RemoveRegion() public method

public RemoveRegion ( IScene scene ) : void
scene IScene
return void

SendFriendsStatusMessage() public method

public SendFriendsStatusMessage ( UUID FriendToInformID, UUID userIDs, bool online ) : void
FriendToInformID UUID
userIDs UUID
online bool
return void

UpdateCachedInfo() protected method

protected UpdateCachedInfo ( UUID agentID, CachedUserInfo info ) : void
agentID UUID
info CachedUserInfo
return void

UpdateFriendsCache() protected method

protected UpdateFriendsCache ( UUID agentID ) : void
agentID UUID
return void

Property Details

m_FriendOnlineStatuses protected property

protected Dictionary> m_FriendOnlineStatuses
return List>.Dictionary

m_Friends protected property

protected Dictionary> m_Friends
return List>.Dictionary

m_enabled public property

public bool m_enabled
return bool

m_firstStart protected property

protected bool m_firstStart
return bool

m_scene protected property

protected IScene m_scene
return IScene