diff options
author | Melanie | 2012-01-16 02:19:19 +0100 |
---|---|---|
committer | Melanie | 2012-01-16 23:09:24 +0000 |
commit | e13a17cc0c8514bc673d5ba39c86d23451278389 (patch) | |
tree | 5db52b401e5abd91316ca17d79aabdb3ae704fde /OpenSim/Services/UserAccountService/GridUserService.cs | |
parent | Comment out noisy log lines I accidentally included in the nant build target ... (diff) | |
download | opensim-SC-e13a17cc0c8514bc673d5ba39c86d23451278389.zip opensim-SC-e13a17cc0c8514bc673d5ba39c86d23451278389.tar.gz opensim-SC-e13a17cc0c8514bc673d5ba39c86d23451278389.tar.bz2 opensim-SC-e13a17cc0c8514bc673d5ba39c86d23451278389.tar.xz |
Allow retrival of multiple user records in one operation, analog to presence
Diffstat (limited to 'OpenSim/Services/UserAccountService/GridUserService.cs')
-rw-r--r-- | OpenSim/Services/UserAccountService/GridUserService.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Services/UserAccountService/GridUserService.cs b/OpenSim/Services/UserAccountService/GridUserService.cs index 9b18915..ac3d8fd 100644 --- a/OpenSim/Services/UserAccountService/GridUserService.cs +++ b/OpenSim/Services/UserAccountService/GridUserService.cs | |||
@@ -73,6 +73,16 @@ namespace OpenSim.Services.UserAccountService | |||
73 | return info; | 73 | return info; |
74 | } | 74 | } |
75 | 75 | ||
76 | public GridUserInfo[] GetGridUserInfo(string[] userIDs) | ||
77 | { | ||
78 | List<GridUserInfo> ret = new List<GridUserInfo>(); | ||
79 | |||
80 | foreach (string id in userIDs) | ||
81 | ret.Add(GetGridUserInfo(id)); | ||
82 | |||
83 | return ret.ToArray(); | ||
84 | } | ||
85 | |||
76 | public GridUserInfo LoggedIn(string userID) | 86 | public GridUserInfo LoggedIn(string userID) |
77 | { | 87 | { |
78 | m_log.DebugFormat("[GRID USER SERVICE]: User {0} is online", userID); | 88 | m_log.DebugFormat("[GRID USER SERVICE]: User {0} is online", userID); |
@@ -156,4 +166,4 @@ namespace OpenSim.Services.UserAccountService | |||
156 | return m_Database.Store(d); | 166 | return m_Database.Store(d); |
157 | } | 167 | } |
158 | } | 168 | } |
159 | } \ No newline at end of file | 169 | } |