aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs')
-rw-r--r--Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs b/Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs
index 8cacbe636..8bedaefe9 100644
--- a/Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs
+++ b/Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs
@@ -3,12 +3,15 @@ using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
+using Tango.TCC.BL;
using Tango.Web;
namespace Tango.TCC.Service
{
public class TCCServiceConfig : WebConfig
{
+ public static String JWT_TOKEN_SECRET => ConfigurationManager.AppSettings[nameof(JWT_TOKEN_SECRET)].ToString();
+
/// <summary>
/// Gets the number of card columns.
/// </summary>
@@ -23,5 +26,50 @@ namespace Tango.TCC.Service
/// Gets the card target index (hole).
/// </summary>
public static int CARD_TARGET_INDEX => int.Parse(ConfigurationManager.AppSettings[nameof(CARD_TARGET_INDEX)].ToString());
+
+ /// <summary>
+ /// Gets the template image base64 string.
+ /// </summary>
+ public static String TEMPLATE_STRING => ConfigurationManager.AppSettings[nameof(TEMPLATE_STRING)].ToString();
+
+ /// <summary>
+ /// Gets the desired width of the sample image.
+ /// </summary>
+ public static int SAMPLE_WIDTH => int.Parse(ConfigurationManager.AppSettings[nameof(SAMPLE_WIDTH)].ToString());
+
+ /// <summary>
+ /// Gets the desired height of the sample image.
+ /// </summary>
+ public static int SAMPLE_HEIGHT => int.Parse(ConfigurationManager.AppSettings[nameof(SAMPLE_HEIGHT)].ToString());
+
+ /// <summary>
+ /// Gets the recommended camera resolution width.
+ /// </summary>
+ public static int CAMERA_WIDTH => int.Parse(ConfigurationManager.AppSettings[nameof(CAMERA_WIDTH)].ToString());
+
+ /// <summary>
+ /// Gets the recommended camera resolution height.
+ /// </summary>
+ public static int CAMERA_HEIGHT => int.Parse(ConfigurationManager.AppSettings[nameof(CAMERA_HEIGHT)].ToString());
+
+ /// <summary>
+ /// Gets the histogram similarity tolerance.
+ /// </summary>
+ public static double SIMILARITY_TOLERANCE => int.Parse(ConfigurationManager.AppSettings[nameof(SIMILARITY_TOLERANCE)].ToString());
+
+ /// <summary>
+ /// Gets the histogram comparison method.
+ /// </summary>
+ public static CardDetectionHistogramMethods HISTOGRAM_METHOD => (CardDetectionHistogramMethods)Enum.Parse(typeof(CardDetectionHistogramMethods), ConfigurationManager.AppSettings[nameof(HISTOGRAM_METHOD)].ToString());
+
+ /// <summary>
+ /// Gets a value indicating whether to perform a double check of the card arucos.
+ /// </summary>
+ public static bool ENABLE_DOUBLE_CHECKING => bool.Parse(ConfigurationManager.AppSettings[nameof(ENABLE_DOUBLE_CHECKING)].ToString());
+
+ /// <summary>
+ /// Gets the mobile application ID.
+ /// </summary>
+ public static String APP_ID => ConfigurationManager.AppSettings[nameof(APP_ID)].ToString();
}
} \ No newline at end of file