using System;
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>
public static int CARD_COLUMNS => int.Parse(ConfigurationManager.AppSettings[nameof(CARD_COLUMNS)].ToString());
/// <summary>
/// Gets the number of card rows.
/// </summary>
public static int CARD_ROWS => int.Parse(ConfigurationManager.AppSettings[nameof(CARD_ROWS)].ToString());
/// <summary>
/// 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 a value indicating whether the card will be detected only when barcode detection is successful.
/// </summary>
public static bool ENFORCE_BARCODE_DETECTION => bool.Parse(ConfigurationManager.AppSettings[nameof(ENFORCE_BARCODE_DETECTION)].ToString());
/// <summary>
/// Gets the mobile application ID.
/// </summary>
public static String APP_ID => ConfigurationManager.AppSettings[nameof(APP_ID)].ToString();
/// <summary>
/// Gets the database catalog.
/// </summary>
public static String TANGO_DB_CATALOG => ConfigurationManager.AppSettings[nameof(TANGO_DB_CATALOG)].ToString();
/// <summary>
/// Gets the Send Grid API key.
/// </summary>
public static String SEND_GRID_API_KEY => ConfigurationManager.AppSettings[nameof(SEND_GRID_API_KEY)].ToString();
/// <summary>
/// Gets the TCC source images container.
/// </summary>
public static String TCC_SOURCE_CONTAINER => ConfigurationManager.AppSettings[nameof(TCC_SOURCE_CONTAINER)].ToString();
/// <summary>
/// Gets the TCC sample images container.
/// </summary>
public static String TCC_SAMPLE_CONTAINER => ConfigurationManager.AppSettings[nameof(TCC_SAMPLE_CONTAINER)].ToString();
}
}