sharee.bike-App/SharedBusinessLogic/Services/CopriApi/ServerUris/CopriHelper.cs
2024-04-09 12:53:23 +02:00

17 lines
606 B
C#

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