diff options
author | Diva Canto | 2010-02-07 16:41:41 -0800 |
---|---|---|
committer | Diva Canto | 2010-02-07 16:41:41 -0800 |
commit | 16f77fa1f1342f2de306c9b4fb7e3c1cd0478c32 (patch) | |
tree | 6ffcd1ea9818102f90776cc7d2191870fb56b9f6 /OpenSim/Services/Connectors | |
parent | Merge branch 'presence-refactor' of melanie@opensimulator.org:/var/git/opensi... (diff) | |
download | opensim-SC-16f77fa1f1342f2de306c9b4fb7e3c1cd0478c32.zip opensim-SC-16f77fa1f1342f2de306c9b4fb7e3c1cd0478c32.tar.gz opensim-SC-16f77fa1f1342f2de306c9b4fb7e3c1cd0478c32.tar.bz2 opensim-SC-16f77fa1f1342f2de306c9b4fb7e3c1cd0478c32.tar.xz |
Finished implementing the XInventory connector. Untested.
Diffstat (limited to 'OpenSim/Services/Connectors')
-rw-r--r-- | OpenSim/Services/Connectors/Inventory/XInventoryConnector.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Services/Connectors/Inventory/XInventoryConnector.cs b/OpenSim/Services/Connectors/Inventory/XInventoryConnector.cs index b9ccd7e..3309d16 100644 --- a/OpenSim/Services/Connectors/Inventory/XInventoryConnector.cs +++ b/OpenSim/Services/Connectors/Inventory/XInventoryConnector.cs | |||
@@ -92,6 +92,8 @@ namespace OpenSim.Services.Connectors | |||
92 | 92 | ||
93 | if (ret == null) | 93 | if (ret == null) |
94 | return false; | 94 | return false; |
95 | if (ret.Count == 0) | ||
96 | return false; | ||
95 | 97 | ||
96 | return bool.Parse(ret["RESULT"].ToString()); | 98 | return bool.Parse(ret["RESULT"].ToString()); |
97 | } | 99 | } |
@@ -105,6 +107,8 @@ namespace OpenSim.Services.Connectors | |||
105 | 107 | ||
106 | if (ret == null) | 108 | if (ret == null) |
107 | return null; | 109 | return null; |
110 | if (ret.Count == 0) | ||
111 | return null; | ||
108 | 112 | ||
109 | List<InventoryFolderBase> folders = new List<InventoryFolderBase>(); | 113 | List<InventoryFolderBase> folders = new List<InventoryFolderBase>(); |
110 | 114 | ||
@@ -122,8 +126,7 @@ namespace OpenSim.Services.Connectors | |||
122 | }); | 126 | }); |
123 | 127 | ||
124 | if (ret == null) | 128 | if (ret == null) |
125 | return null; | 129 | return null; |
126 | |||
127 | if (ret.Count == 0) | 130 | if (ret.Count == 0) |
128 | return null; | 131 | return null; |
129 | 132 | ||
@@ -140,7 +143,6 @@ namespace OpenSim.Services.Connectors | |||
140 | 143 | ||
141 | if (ret == null) | 144 | if (ret == null) |
142 | return null; | 145 | return null; |
143 | |||
144 | if (ret.Count == 0) | 146 | if (ret.Count == 0) |
145 | return null; | 147 | return null; |
146 | 148 | ||
@@ -157,7 +159,6 @@ namespace OpenSim.Services.Connectors | |||
157 | 159 | ||
158 | if (ret == null) | 160 | if (ret == null) |
159 | return null; | 161 | return null; |
160 | |||
161 | if (ret.Count == 0) | 162 | if (ret.Count == 0) |
162 | return null; | 163 | return null; |
163 | 164 | ||
@@ -182,7 +183,7 @@ namespace OpenSim.Services.Connectors | |||
182 | 183 | ||
183 | public List<InventoryItemBase> GetFolderItems(UUID principalID, UUID folderID) | 184 | public List<InventoryItemBase> GetFolderItems(UUID principalID, UUID folderID) |
184 | { | 185 | { |
185 | Dictionary<string,object> ret = MakeRequest("GETFOLDERCONTENT", | 186 | Dictionary<string,object> ret = MakeRequest("GETFOLDERITEMS", |
186 | new Dictionary<string,object> { | 187 | new Dictionary<string,object> { |
187 | { "PRINCIPAL", principalID.ToString() }, | 188 | { "PRINCIPAL", principalID.ToString() }, |
188 | { "FOLDER", folderID.ToString() } | 189 | { "FOLDER", folderID.ToString() } |
@@ -190,7 +191,6 @@ namespace OpenSim.Services.Connectors | |||
190 | 191 | ||
191 | if (ret == null) | 192 | if (ret == null) |
192 | return null; | 193 | return null; |
193 | |||
194 | if (ret.Count == 0) | 194 | if (ret.Count == 0) |
195 | return null; | 195 | return null; |
196 | 196 | ||
@@ -244,7 +244,8 @@ namespace OpenSim.Services.Connectors | |||
244 | Dictionary<string,object> ret = MakeRequest("MOVEFOLDER", | 244 | Dictionary<string,object> ret = MakeRequest("MOVEFOLDER", |
245 | new Dictionary<string,object> { | 245 | new Dictionary<string,object> { |
246 | { "ParentID", folder.ParentID.ToString() }, | 246 | { "ParentID", folder.ParentID.ToString() }, |
247 | { "ID", folder.ID.ToString() } | 247 | { "ID", folder.ID.ToString() }, |
248 | { "PRINCIPAL", folder.Owner.ToString() } | ||
248 | }); | 249 | }); |
249 | 250 | ||
250 | if (ret == null) | 251 | if (ret == null) |
@@ -362,7 +363,7 @@ namespace OpenSim.Services.Connectors | |||
362 | 363 | ||
363 | Dictionary<string,object> ret = MakeRequest("MOVEITEMS", | 364 | Dictionary<string,object> ret = MakeRequest("MOVEITEMS", |
364 | new Dictionary<string,object> { | 365 | new Dictionary<string,object> { |
365 | { "PrincipalID", principalID.ToString() }, | 366 | { "PRINCIPAL", principalID.ToString() }, |
366 | { "IDLIST", idlist }, | 367 | { "IDLIST", idlist }, |
367 | { "DESTLIST", destlist } | 368 | { "DESTLIST", destlist } |
368 | }); | 369 | }); |
@@ -401,7 +402,6 @@ namespace OpenSim.Services.Connectors | |||
401 | 402 | ||
402 | if (ret == null) | 403 | if (ret == null) |
403 | return null; | 404 | return null; |
404 | |||
405 | if (ret.Count == 0) | 405 | if (ret.Count == 0) |
406 | return null; | 406 | return null; |
407 | 407 | ||
@@ -417,7 +417,6 @@ namespace OpenSim.Services.Connectors | |||
417 | 417 | ||
418 | if (ret == null) | 418 | if (ret == null) |
419 | return null; | 419 | return null; |
420 | |||
421 | if (ret.Count == 0) | 420 | if (ret.Count == 0) |
422 | return null; | 421 | return null; |
423 | 422 | ||
@@ -531,5 +530,6 @@ namespace OpenSim.Services.Connectors | |||
531 | 530 | ||
532 | return item; | 531 | return item; |
533 | } | 532 | } |
533 | |||
534 | } | 534 | } |
535 | } | 535 | } |