diff options
author | Diva Canto | 2013-07-28 09:00:28 -0700 |
---|---|---|
committer | Diva Canto | 2013-07-28 09:00:28 -0700 |
commit | 170a6f0563c9b9e228dad0b1db5654f2114a05f4 (patch) | |
tree | 73d77710d77edb36e7efa0d1428a83fb941f0b1b /OpenSim/Addons/Groups/GroupsExtendedData.cs | |
parent | More on group chat: only root agents should subscribe to OnInstantMessage, or... (diff) | |
download | opensim-SC-170a6f0563c9b9e228dad0b1db5654f2114a05f4.zip opensim-SC-170a6f0563c9b9e228dad0b1db5654f2114a05f4.tar.gz opensim-SC-170a6f0563c9b9e228dad0b1db5654f2114a05f4.tar.bz2 opensim-SC-170a6f0563c9b9e228dad0b1db5654f2114a05f4.tar.xz |
This makes group search work (Groups V2).
Diffstat (limited to 'OpenSim/Addons/Groups/GroupsExtendedData.cs')
-rw-r--r-- | OpenSim/Addons/Groups/GroupsExtendedData.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Addons/Groups/GroupsExtendedData.cs b/OpenSim/Addons/Groups/GroupsExtendedData.cs index 6f4db28..1632aee 100644 --- a/OpenSim/Addons/Groups/GroupsExtendedData.cs +++ b/OpenSim/Addons/Groups/GroupsExtendedData.cs | |||
@@ -504,6 +504,30 @@ namespace OpenSim.Groups | |||
504 | 504 | ||
505 | return notice; | 505 | return notice; |
506 | } | 506 | } |
507 | |||
508 | public static Dictionary<string, object> DirGroupsReplyData(DirGroupsReplyData g) | ||
509 | { | ||
510 | Dictionary<string, object> dict = new Dictionary<string, object>(); | ||
511 | |||
512 | dict["GroupID"] = g.groupID; | ||
513 | dict["Name"] = g.groupName; | ||
514 | dict["NMembers"] = g.members; | ||
515 | dict["SearchOrder"] = g.searchOrder; | ||
516 | |||
517 | return dict; | ||
518 | } | ||
519 | |||
520 | public static DirGroupsReplyData DirGroupsReplyData(Dictionary<string, object> dict) | ||
521 | { | ||
522 | DirGroupsReplyData g; | ||
523 | |||
524 | g.groupID = new UUID(dict["GroupID"].ToString()); | ||
525 | g.groupName = dict["Name"].ToString(); | ||
526 | Int32.TryParse(dict["NMembers"].ToString(), out g.members); | ||
527 | float.TryParse(dict["SearchOrder"].ToString(), out g.searchOrder); | ||
528 | |||
529 | return g; | ||
530 | } | ||
507 | } | 531 | } |
508 | 532 | ||
509 | } | 533 | } |