jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=dd4bad3037f052b5b3cc56c7715d7b89bfe3636d

commit dd4bad3037f052b5b3cc56c7715d7b89bfe3636d
Author: Yeongjong Lee <[email protected]>
Date:   Tue Feb 4 17:17:27 2020 +0900

    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<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
    {

-- 


Reply via email to