mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
FInish basic asset server functionality on the new asset server
This commit is contained in:
@@ -74,17 +74,31 @@ namespace OpenSim.Services.AssetService
|
||||
|
||||
public AssetMetadata GetMetadata(string id)
|
||||
{
|
||||
return null;
|
||||
UUID assetID;
|
||||
|
||||
if (!UUID.TryParse(id, out assetID))
|
||||
return null;
|
||||
|
||||
AssetBase asset = m_Database.FetchAsset(assetID);
|
||||
return asset.Metadata;
|
||||
}
|
||||
|
||||
public byte[] GetData(string id)
|
||||
{
|
||||
return null;
|
||||
UUID assetID;
|
||||
|
||||
if (!UUID.TryParse(id, out assetID))
|
||||
return null;
|
||||
|
||||
AssetBase asset = m_Database.FetchAsset(assetID);
|
||||
return asset.Data;
|
||||
}
|
||||
|
||||
public string Store(AssetBase asset)
|
||||
{
|
||||
return String.Empty;
|
||||
m_Database.CreateAsset(asset);
|
||||
|
||||
return asset.ID;
|
||||
}
|
||||
|
||||
public bool UpdateContent(string id, byte[] data)
|
||||
|
||||
Reference in New Issue
Block a user