diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueHelper.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueHelper.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueHelper.cs index 5f471e5..b74375f 100644 --- a/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueHelper.cs +++ b/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueHelper.cs | |||
@@ -275,5 +275,32 @@ namespace OpenSim.Region.Environment | |||
275 | chatterboxInvitation.Add("body", body); | 275 | chatterboxInvitation.Add("body", body); |
276 | return chatterboxInvitation; | 276 | return chatterboxInvitation; |
277 | } | 277 | } |
278 | |||
279 | public static OSD ChatterBoxSessionAgentListUpdates(UUID sessionID, | ||
280 | UUID agentID, bool canVoiceChat, bool isModerator, bool textMute) | ||
281 | { | ||
282 | OSDMap body = new OSDMap(); | ||
283 | OSDMap agentUpdates = new OSDMap(); | ||
284 | OSDMap infoDetail = new OSDMap(); | ||
285 | OSDMap mutes = new OSDMap(); | ||
286 | |||
287 | mutes.Add("text", OSD.FromBoolean(textMute)); | ||
288 | infoDetail.Add("can_voice_chat", OSD.FromBoolean(canVoiceChat)); | ||
289 | infoDetail.Add("is_moderator", OSD.FromBoolean(isModerator)); | ||
290 | infoDetail.Add("mutes", mutes); | ||
291 | OSDMap info = new OSDMap(); | ||
292 | info.Add("info", infoDetail); | ||
293 | agentUpdates.Add(agentID.ToString(), info); | ||
294 | body.Add("agent_updates", agentUpdates); | ||
295 | body.Add("session_id", OSD.FromUUID(sessionID)); | ||
296 | body.Add("updates", new OSD()); | ||
297 | |||
298 | OSDMap chatterBoxSessionAgentListUpdates = new OSDMap(); | ||
299 | chatterBoxSessionAgentListUpdates.Add("message", OSD.FromString("ChatterBoxSessionAgentListUpdates")); | ||
300 | chatterBoxSessionAgentListUpdates.Add("body", body); | ||
301 | |||
302 | return chatterBoxSessionAgentListUpdates; | ||
303 | } | ||
304 | |||
278 | } | 305 | } |
279 | } | 306 | } |