using System; using ShareeBike.Model.Services.CopriApi.ServerUris; namespace ShareeBike.Services.CopriApi.ServerUris { public static class CopriHelper { public const string SHAREE_SILTEFOLDERNAME = "site"; /// Gets a value indicating whether a host is copri or not. /// Host name. /// True if server is copri, fals if not. public static bool GetIsCopri(this string hostName) => new Uri(CopriServerUriList.ShareeBike_DEVEL).Host == hostName || new Uri(CopriServerUriList.ShareeBike_LIVE).Host == hostName; } }