// Author: Gockner, Simon // Created: 2020-02-11 // Copyright(c) 2020 SimonG. All Rights Reserved. using GBase.Api.Communication; using GBase.Api.Services; namespace GBase.Client.Services { /// /// for the IGBaseTable /// public class GBaseTableService : Service, IGBaseTableService { /// /// for the IGBaseTable /// /// The /// The endpoint for the GBaseTable public GBaseTableService(ServerProtocol serverProtocol, string endpoint) : base(serverProtocol, endpoint) { } /// /// Add an entry to the GBaseTable /// /// True if successful, false if not public bool AddEntry() { IGBaseTableService channel = OpenChannel(); bool ret = channel.AddEntry(); CloseChannel(channel); return ret; } /// /// Remove an entry from the GBaseTable /// /// True if successful, false if not public bool RemoveEntry() { IGBaseTableService channel = OpenChannel(); bool ret = channel.RemoveEntry(); CloseChannel(channel); return ret; } } }