2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-01-27 01:20:39 +00:00

IDynamicResource Added

This commit is contained in:
2026-01-21 09:06:35 +03:00
parent 63ba506338
commit f8d7630c21
18 changed files with 698 additions and 839 deletions

View File

@@ -1586,7 +1586,7 @@ public static class DataDeserializer
var pvs = new List<PropertyValue>();
for (var i = 0; i < ar.Length; i += 3)
pvs.Add(new PropertyValue(ar[2], Convert.ToUInt64(ar[0]), (DateTime?)ar[1]));
pvs.Add(new PropertyValue(ar[i + 2], Convert.ToUInt64(ar[i]), (DateTime?)ar[i+1]));
rt.Trigger(pvs.ToArray());

View File

@@ -0,0 +1,20 @@
using Esiur.Core;
using Esiur.Resource.Template;
using System;
using System.Collections.Generic;
using System.Text;
namespace Esiur.Data
{
public interface IDynamicResource
{
public PropertyValue[] SerializeResource();
public Map<byte, PropertyValue> SerializeResourceAfter(ulong age);
public object GetResourceProperty(byte index);
public AsyncReply SetResourcePropertyAsync(byte index, object value);
public void SetResourceProperty(byte index, object value);
public TypeTemplate ResourceTemplate { get; }
}
}