csharp: implement GetChildrenIndex for GenericModel

Summary: This patch will fix EFL# build error.

Reviewers: felipealmeida, woohyun, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11269
This commit is contained in:
Yeongjong Lee 2020-02-04 17:17:27 +09:00 committed by Jaehyun Cho
parent a92f8c210b
commit dd4bad3037
1 changed files with 22 additions and 0 deletions

View File

@ -167,6 +167,28 @@ public class GenericModel<T> : Efl.Object, Efl.IModel
return model.GetChildrenSliceAsync(start, count, token);
}
/// <summary>Get children as specified by iterator.
///
/// Provided index have to be between 0 and <see cref="Efl.IModel.GetChildrenCount"/>.
///
/// This function might rely on <see cref="Efl.IModel.GetChildrenSlice"/> as a fallback.</summary>
/// <param name="indices">Indices of the requested children.</param>
/// <returns>Array of children</returns>
public Eina.Future GetChildrenIndex(IEnumerable<uint> indices)
{
return model.GetChildrenIndex(indices);
}
/// <summary>Async wrapper for <see cref="GetChildrenIndex" />.
/// </summary>
/// <param name="indices">Indices of the requested children.</param>
/// <param name="token">Token to notify the async operation of external request to cancel.</param>
/// <returns>An async task wrapping the result of the operation.</returns>
public System.Threading.Tasks.Task<Eina.Value> GetChildrenIndexAsync(IEnumerable<uint> indices, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
{
return model.GetChildrenIndexAsync(indices, token);
}
/// <summary>Event triggered when properties on the wrapped model changes.</summary>
public event EventHandler<Efl.ModelPropertiesChangedEventArgs> PropertiesChangedEvent
{