// 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 IGBase /// public class GBaseService : Service, IGBaseService { /// /// for the IGBase /// /// The /// The endpoint for the GBase public GBaseService(ServerProtocol serverProtocol, string endpoint) : base(serverProtocol, endpoint) { } /// /// Add a table to the GBase /// /// True if successful, false if not public bool AddTable() //TODO: Implement this function correctly { IGBaseService channel = OpenChannel(); bool success = channel.AddTable(); CloseChannel(channel); return success; } /// /// Remove a table from the GBase /// /// True if successful, false if not public bool RemoveTable() //TODO: Implement this function correctly { IGBaseService channel = OpenChannel(); bool success = channel.RemoveTable(); CloseChannel(channel); return success; } } }