示例#1
0
        public void Deserialize(OSDMap map)
        {
            Success = map["success"].AsBoolean();
            Message = map["message"].AsString();
            OSDMap objMap = map["object"] as OSDMap;
            if (objMap != null)
            {
                if (objMap.ContainsKey("asset_id"))
                    Object = new InventoryBlockItem();
                else
                    Object = new InventoryBlockFolder();

                Object.Deserialize(objMap);
            }
            else
            {
                Object = null;
            }
        }
示例#2
0
 public void Deserialize(OSDMap map)
 {
     Identity = map["identity"].AsUri();
     OSDMap objMap = (OSDMap)map["object"];
     if (objMap.ContainsKey("asset_id"))
         Object = new InventoryBlockItem();
     else
         Object = new InventoryBlockFolder();
     Object.Deserialize(objMap);
 }