Files
mROA/Example.Backend/PagesList.cs
T

54 lines
1.3 KiB
C#
Raw Normal View History

using System;
2025-03-06 14:10:52 +03:00
using System.Collections.Generic;
using Example.Shared;
using mROA.Abstract;
using mROA.Implementation;
2025-03-06 14:10:52 +03:00
namespace Example.Backend
{
public class PagesList : RemoteObjectBase, IPagesList
2025-03-06 14:10:52 +03:00
{
public PagesList(int id, IRepresentationModule representationModule) : base(id, representationModule)
{
}
public IReadOnlyList<IPage> Collection { get; }
public IPage this[int index]
{
get => GetResultAsync<IPage>(3, new object[] { index }).GetAwaiter().GetResult();
set => CallAsync(5, new object[] { index, value }).Wait();
}
2025-03-06 14:10:52 +03:00
public IPage Get(int index)
{
throw new NotImplementedException();
2025-03-06 14:10:52 +03:00
}
public void Add(IPage item)
{
throw new NotImplementedException();
2025-03-06 14:10:52 +03:00
}
public void Remove(int index, IPage item)
2025-03-06 14:10:52 +03:00
{
throw new NotImplementedException();
2025-03-06 14:10:52 +03:00
}
public event Action<IPage>? OnAdd;
public event Action<IPage>? OnRemove;
public void Dispose()
{
// TODO release managed resources here
}
public void OnAddExternal(IPage p0)
{
}
public void OnRemoveExternal(IPage p0)
{
}
2025-03-06 14:10:52 +03:00
}
}