From df710cd6234547cb3265bd09f2c94efdfce17641 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 14 Nov 2016 12:39:27 +0100 Subject: [PATCH] use the production server by default, or set either DEV, LUA, or YAVSC at compilation time to choose another one. --- BookAStar/BookAStar/Constants.cs | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/BookAStar/BookAStar/Constants.cs b/BookAStar/BookAStar/Constants.cs index 70234d49..8b6f9d5e 100644 --- a/BookAStar/BookAStar/Constants.cs +++ b/BookAStar/BookAStar/Constants.cs @@ -13,18 +13,30 @@ namespace BookAStar #region Uri - public const string YavscHomeUrl = "http://dev.pschneider.fr"; +#if DEV + public const string YavscHomeUrl = "https://dev.pschneider.fr"; +#else +#if YAVSC + public const string YavscHomeUrl = "https://yavsc.pschneider.fr"; +#else +#if LUA + public const string YavscHomeUrl = "https://lua.pschneider.fr"; +#else + public const string YavscHomeUrl = "https://booking.pschneider.fr"; +#endif +#endif +#endif public static readonly string YavscApiUrl = YavscHomeUrl + "/api"; public static readonly string MobileRegistrationUrl = YavscApiUrl + "/gcm/register"; public static readonly string UserInfoUrl = YavscApiUrl + "/me"; public static readonly string BlogUrl = YavscApiUrl + "/blogs"; public static readonly string FsUrl = YavscApiUrl + "/fs"; public static readonly string SignalRHubsUrl = YavscHomeUrl + "/api/signalr/hubs"; - #endregion +#endregion - #region Permissions ids +#region Permissions ids public static int AllowBeATarget = 1; - #endregion +#endregion public static int CloudTimeout = 400; }