From eb31c0303d935076a4e11dcb6d4986571ea119e1 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Mon, 10 Feb 2020 14:17:53 +0100 Subject: [PATCH] - add GBaseClientSettings --- GBase.Client/GBase.Client.csproj | 4 +++ GBase.Client/GBaseClientSettings.cs | 26 +++++++++++++++++++ .../Interfaces/IGBaseClientSettings.cs | 13 ++++++++++ 3 files changed, 43 insertions(+) create mode 100644 GBase.Client/GBaseClientSettings.cs create mode 100644 GBase.Client/Interfaces/IGBaseClientSettings.cs diff --git a/GBase.Client/GBase.Client.csproj b/GBase.Client/GBase.Client.csproj index 72764a6..f1ca2f0 100644 --- a/GBase.Client/GBase.Client.csproj +++ b/GBase.Client/GBase.Client.csproj @@ -4,4 +4,8 @@ netstandard2.0 + + + + diff --git a/GBase.Client/GBaseClientSettings.cs b/GBase.Client/GBaseClientSettings.cs new file mode 100644 index 0000000..e4c02ce --- /dev/null +++ b/GBase.Client/GBaseClientSettings.cs @@ -0,0 +1,26 @@ +// Author: Gockner, Simon +// Created: 2020-02-10 +// Copyright(c) 2020 SimonG. All Rights Reserved. + +using System.Net; +using GBase.Api.Communication; +using GBase.Client.Interfaces; + +namespace GBase.Client +{ + public class GBaseClientSettings : IGBaseClientSettings + { + public GBaseClientSettings(ServerProtocol protocol, IPAddress ipAddress, int port, string endpoint) + { + Protocol = protocol; + IpAddress = ipAddress; + Port = port; + Endpoint = endpoint; + } + + public ServerProtocol Protocol { get; } + public IPAddress IpAddress { get; } + public int Port { get; } + public string Endpoint { get; } + } +} \ No newline at end of file diff --git a/GBase.Client/Interfaces/IGBaseClientSettings.cs b/GBase.Client/Interfaces/IGBaseClientSettings.cs new file mode 100644 index 0000000..cc326b4 --- /dev/null +++ b/GBase.Client/Interfaces/IGBaseClientSettings.cs @@ -0,0 +1,13 @@ +// Author: Gockner, Simon +// Created: 2020-02-10 +// Copyright(c) 2020 SimonG. All Rights Reserved. + +using GBase.Api.Communication; + +namespace GBase.Client.Interfaces +{ + public interface IGBaseClientSettings : ICommunicationSettings + { + + } +} \ No newline at end of file