sharee.bike-App/TINKLib/Services/CopriApi/ServerUris/CopriHelper.cs

18 lines
582 B
C#
Raw Normal View History

2021-05-13 20:03:07 +02:00
using System;
using TINK.Model.Services.CopriApi.ServerUris;
namespace TINK.Services.CopriApi.ServerUris
{
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)
=> new Uri(CopriServerUriList.TINK_DEVEL).Host == hostName
|| new Uri(CopriServerUriList.TINK_LIVE).Host == hostName;
}
2021-05-13 20:03:07 +02:00
}