diff --git a/src/bindings/mono/efl_mono/GenericModel.cs b/src/bindings/mono/efl_mono/GenericModel.cs
index b9ef325750..2da3da6803 100644
--- a/src/bindings/mono/efl_mono/GenericModel.cs
+++ b/src/bindings/mono/efl_mono/GenericModel.cs
@@ -15,8 +15,6 @@ namespace Efl {
/// It provides an expanded API like async helpers to get children.
///
/// For MVVM-based models, provides a simpler API.
-///
-/// Since EFL 1.24.
///
/// The type of the child model. It is the type used when adding/removing/getting items to this
/// model.
@@ -25,6 +23,8 @@ public class GenericModel : Efl.Object, Efl.IModel, IDisposable
private Efl.IModel model;
/// Creates a new model wrapping model.
+ /// The model to be wrapped.
+ /// The parent of the model.
public GenericModel (Efl.IModel model, Efl.Object parent = null) : base(parent)
{
this.model = model;
@@ -43,42 +43,57 @@ public class GenericModel : Efl.Object, Efl.IModel, IDisposable
}
/// The list of properties available in the wrapped model.
+ /// The list of properties in the model.
public Eina.Iterator GetProperties()
{
return model.GetProperties();
}
/// Gets the value of the given property in the wrapped model.
+ /// The property of the model.
+ /// The value of the property.
public Eina.Value GetProperty( System.String property)
{
return model.GetProperty(property);
}
/// Sets the value of the given property in the given model.
+ /// The property of the model.
+ /// The value of the property.
+ /// An that resolves when the property has
+ /// been set or reports an error if it could not be set.
public Eina.Future SetProperty( System.String property, Eina.Value value)
{
return model.SetProperty(property, value);
}
/// Returns the number of children in the wrapped model.
+ /// The number of children.
public uint GetChildrenCount()
{
return model.GetChildrenCount();
}
/// Returns an that will resolve when the property is ready to be read.
+ /// The property of the model.
+ /// An that resolves when the property is ready.
public Eina.Future GetPropertyReady( System.String property)
{
return model.GetPropertyReady(property);
}
/// Gets a number of children from the wrapped model.
+ /// The start of the range.
+ /// The size of the range.
+ /// An that resolves to an
+ /// of children models.
public Eina.Future GetChildrenSlice( uint start, uint count)
{
return model.GetChildrenSlice(start, count);
}
/// Adds a new object to the wrapper model.
+ /// The object to get the properties from.
public void Add(T o)
{
Efl.IModel child = (Efl.IModel)this.AddChild();
@@ -86,18 +101,22 @@ public class GenericModel : Efl.Object, Efl.IModel, IDisposable
}
/// Adds a new child to the model and returns it.
+ /// The object to be wrapped.
public Efl.Object AddChild()
{
return model.AddChild();
}
/// Deletes the given child from the wrapped model.
+ /// The child to be deleted.
public void DelChild( Efl.Object child)
{
model.DelChild(child);
}
/// Gets the element at the specified index.
+ /// The position of the element.
+ /// Token to notify the async operation of external request to cancel.
async public System.Threading.Tasks.Task GetAtAsync(uint index)
{
using (Eina.Value v = await GetChildrenSliceAsync(index, 1))
@@ -117,18 +136,32 @@ public class GenericModel : Efl.Object, Efl.IModel, IDisposable
}
/// Async wrapper around .
+ /// The property to be added.
+ /// The value of the property.
+ /// The token for the task's cancellation.
+ /// Task that resolves when the property has been set or could not
+ /// be set.
public System.Threading.Tasks.Task SetPropertyAsync( System.String property, Eina.Value value, System.Threading.CancellationToken token=default(System.Threading.CancellationToken))
{
return model.SetPropertyAsync(property, value, token);
}
/// Async wrapper around .
+ /// The property of the model.
+ /// The token for the task's cancellation.
+ /// Task that resolves when the given property is ready to be
+ /// read.
public System.Threading.Tasks.Task GetPropertyReadyAsync( System.String property, System.Threading.CancellationToken token=default(System.Threading.CancellationToken))
{
return model.GetPropertyReadyAsync(property, token);
}
/// Async wrapper around .
+ /// The start of the range.
+ /// The size of the range.
+ /// Token to notify the async operation of external request to cancel.
+ /// Task that resolves when the desired of
+ /// children models is ready.
public System.Threading.Tasks.Task GetChildrenSliceAsync( uint start, uint count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken))
{
return model.GetChildrenSliceAsync(start, count, token);