|
|
|
|
@ -6,7 +6,6 @@ using System; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
using System.Threading; |
|
|
|
|
using System.Threading.Tasks; |
|
|
|
|
using GBase.Api; |
|
|
|
|
|
|
|
|
|
namespace GBase.Interfaces |
|
|
|
|
{ |
|
|
|
|
@ -18,9 +17,9 @@ namespace GBase.Interfaces |
|
|
|
|
List<T> Entries { get; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Add an entry that implements <see cref="INotifyGBaseEntryChanged"/> to this <see cref="IGBaseTable"/> |
|
|
|
|
/// Add an entry that implements <see cref="IGBaseObject"/> to this <see cref="IGBaseTable"/> |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="entry">The entry implementing <see cref="INotifyGBaseEntryChanged"/></param> |
|
|
|
|
/// <param name="entry">The entry implementing <see cref="IGBaseObject"/></param> |
|
|
|
|
/// <param name="cancellationToken"></param> |
|
|
|
|
/// <returns>True if successful, false if not</returns> |
|
|
|
|
Task<bool> AddEntry(T entry, CancellationToken cancellationToken); |
|
|
|
|
@ -29,9 +28,9 @@ namespace GBase.Interfaces |
|
|
|
|
//T GetEntry(T entry); //TODO: This doesn't make sense... (passing instance of T to get the same instance back...) |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Remove an entry that implements <see cref="INotifyGBaseEntryChanged"/> from this <see cref="IGBaseTable"/> |
|
|
|
|
/// Remove an entry that implements <see cref="IGBaseObject"/> from this <see cref="IGBaseTable"/> |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="entry">The entry implementing <see cref="INotifyGBaseEntryChanged"/></param> |
|
|
|
|
/// <param name="entry">The entry implementing <see cref="IGBaseObject"/></param> |
|
|
|
|
/// <returns>True if successful, false if not</returns> |
|
|
|
|
Task<bool> RemoveEntry(T entry); |
|
|
|
|
|
|
|
|
|
|