aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
diff options
context:
space:
mode:
authorTleiades Hax2007-10-30 22:42:34 +0000
committerTleiades Hax2007-10-30 22:42:34 +0000
commit6a8d8f54e88a21e6cfd78dc7981cdeec2f18094d (patch)
tree035f881d61f4a876ebdc72672e3c50a620ae4cfd /OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
parent* doh II (diff)
downloadopensim-SC-6a8d8f54e88a21e6cfd78dc7981cdeec2f18094d.zip
opensim-SC-6a8d8f54e88a21e6cfd78dc7981cdeec2f18094d.tar.gz
opensim-SC-6a8d8f54e88a21e6cfd78dc7981cdeec2f18094d.tar.bz2
opensim-SC-6a8d8f54e88a21e6cfd78dc7981cdeec2f18094d.tar.xz
Step one on the long march towards grid based inventory. Introduction of an InevntoryServer
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs24
1 files changed, 21 insertions, 3 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
index 49fdee9..85df353 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
@@ -25,7 +25,9 @@
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26* 26*
27*/ 27*/
28 28using System;
29using System.IO;
30using System.Xml.Serialization;
29using System.Collections.Generic; 31using System.Collections.Generic;
30using libsecondlife; 32using libsecondlife;
31using OpenSim.Framework; 33using OpenSim.Framework;
@@ -36,8 +38,11 @@ namespace OpenSim.Region.Communications.OGS1
36{ 38{
37 public class OGS1InventoryService : IInventoryServices 39 public class OGS1InventoryService : IInventoryServices
38 { 40 {
39 public OGS1InventoryService() 41 string _inventoryServerUrl;
42
43 public OGS1InventoryService(string inventoryServerUrl)
40 { 44 {
45 _inventoryServerUrl = inventoryServerUrl;
41 } 46 }
42 47
43 #region IInventoryServices Members 48 #region IInventoryServices Members
@@ -45,6 +50,19 @@ namespace OpenSim.Region.Communications.OGS1
45 public void RequestInventoryForUser(LLUUID userID, InventoryFolderInfo folderCallBack, 50 public void RequestInventoryForUser(LLUUID userID, InventoryFolderInfo folderCallBack,
46 InventoryItemInfo itemCallBack) 51 InventoryItemInfo itemCallBack)
47 { 52 {
53 //TODO! Uncomment when all is done
54 //SerializableInventory userInventory = null;
55
56 //RestClient inventoryServer = new RestClient(_inventoryServerUrl);
57 //inventoryServer.AddResourcePath("inventory");
58 //inventoryServer.AddResourcePath("user");
59 //inventoryServer.AddResourcePath(userID.ToStringHyphenated());
60
61 //using (Stream userInventoryStream = inventoryServer.Request())
62 //{
63 // XmlSerializer x = new XmlSerializer(typeof(SerializableInventory));
64 // userInventory = (SerializableInventory)x.Deserialize(userInventoryStream);
65 //}
48 } 66 }
49 67
50 public void AddNewInventoryFolder(LLUUID userID, InventoryFolderImpl folder) 68 public void AddNewInventoryFolder(LLUUID userID, InventoryFolderImpl folder)
@@ -70,4 +88,4 @@ namespace OpenSim.Region.Communications.OGS1
70 88
71 #endregion 89 #endregion
72 } 90 }
73} \ No newline at end of file 91}