2021-05-13 20:03:07 +02:00
|
|
|
|
using System;
|
2024-04-09 12:53:23 +02:00
|
|
|
|
using ShareeBike.Model.Services.CopriApi.ServerUris;
|
2021-05-13 20:03:07 +02:00
|
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
|
namespace ShareeBike.Services.CopriApi.ServerUris
|
2021-05-13 20:03:07 +02:00
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public static class CopriHelper
|
|
|
|
|
{
|
|
|
|
|
public const string SHAREE_SILTEFOLDERNAME = "site";
|
2021-05-13 20:03:07 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <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)
|
2024-04-09 12:53:23 +02:00
|
|
|
|
=> new Uri(CopriServerUriList.ShareeBike_DEVEL).Host == hostName
|
|
|
|
|
|| new Uri(CopriServerUriList.ShareeBike_LIVE).Host == hostName;
|
2022-09-06 16:08:19 +02:00
|
|
|
|
}
|
2021-05-13 20:03:07 +02:00
|
|
|
|
}
|