// 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; } public string ServerProtocolEndpointAddress => @$"{Protocol.GetProtocolString()}{IpAddress}:{Port}{Endpoint}"; } }