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:
@@ -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());
|
||||
|
||||
20
Esiur/Data/IDynamicResource.cs
Normal file
20
Esiur/Data/IDynamicResource.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user