2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-06-13 14:38:43 +00:00
This commit is contained in:
2026-06-08 16:15:57 +03:00
parent 8143da2eee
commit 340798a5fa
111 changed files with 20647 additions and 27 deletions
@@ -0,0 +1,37 @@
using System;
using Esiur.Resource;
using Esiur.Core;
using Esiur.Data;
using Esiur.Protocol;
#nullable enable
namespace RPC.EsiurTest
{
[TypeId("d90d3558e2b18d9a8f45707372ddf2c3")]
public class TestObject : EpResource
{
public TestObject(EpConnection connection, uint instanceId, ulong age, string link) : base(connection, instanceId, age, link) { }
public TestObject() { }
[Annotation("String")]
[Export]
public string Name
{
get => (string)properties[0];
set => SetResourceProperty(0, value);
}
[Annotation("Int32")]
[Export]
public int Size
{
get => (int)properties[1];
set => SetResourceProperty(1, value);
}
[Annotation("Object")]
[Export]
public object Value
{
get => (object)properties[2];
set => SetResourceProperty(2, value);
}
}
}