From dd4bad3037f052b5b3cc56c7715d7b89bfe3636d Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Tue, 4 Feb 2020 17:17:27 +0900 Subject: [PATCH] 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 --- src/bindings/mono/efl_mono/GenericModel.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/bindings/mono/efl_mono/GenericModel.cs b/src/bindings/mono/efl_mono/GenericModel.cs index 8d7cc813a2..ae1b69cf3e 100644 --- a/src/bindings/mono/efl_mono/GenericModel.cs +++ b/src/bindings/mono/efl_mono/GenericModel.cs @@ -167,6 +167,28 @@ public class GenericModel : Efl.Object, Efl.IModel return model.GetChildrenSliceAsync(start, count, token); } + /// Get children as specified by iterator. + /// + /// Provided index have to be between 0 and . + /// + /// This function might rely on as a fallback. + /// Indices of the requested children. + /// Array of children + public Eina.Future GetChildrenIndex(IEnumerable indices) + { + return model.GetChildrenIndex(indices); + } + + /// Async wrapper for . + /// + /// Indices of the requested children. + /// Token to notify the async operation of external request to cancel. + /// An async task wrapping the result of the operation. + public System.Threading.Tasks.Task GetChildrenIndexAsync(IEnumerable indices, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) + { + return model.GetChildrenIndexAsync(indices, token); + } + /// Event triggered when properties on the wrapped model changes. public event EventHandler PropertiesChangedEvent {