init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
98
Kreta.WebApi/Naplo/Kreta.Naplo.Infrastrucure/Constants.cs
Normal file
98
Kreta.WebApi/Naplo/Kreta.Naplo.Infrastrucure/Constants.cs
Normal file
|
@ -0,0 +1,98 @@
|
|||
namespace Kreta.Naplo.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// Global constants
|
||||
/// </summary>
|
||||
public static class Constants
|
||||
{
|
||||
/// <summary>
|
||||
/// The empty string
|
||||
/// </summary>
|
||||
public const string EmptyString = "";
|
||||
|
||||
/// <summary>
|
||||
/// Unknown institute
|
||||
/// </summary>
|
||||
public const string UnknownInstitute = "unknown_institute";
|
||||
|
||||
/// <summary>
|
||||
/// The secret log value
|
||||
/// </summary>
|
||||
public const string SecretLogValue = "***";
|
||||
|
||||
/// <summary>
|
||||
/// Minimum primary key value
|
||||
/// </summary>
|
||||
public const int MinimumPrimaryKeyValue = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Http
|
||||
/// </summary>
|
||||
public static class Http
|
||||
{
|
||||
/// <summary>
|
||||
/// Media type names
|
||||
/// </summary>
|
||||
public static class MediaTypeName
|
||||
{
|
||||
/// <summary>
|
||||
/// Application json type
|
||||
/// </summary>
|
||||
public const string ApplicationJson = "application/json";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Headers
|
||||
/// </summary>
|
||||
public static class Headers
|
||||
{
|
||||
/// <summary>
|
||||
/// User agent
|
||||
/// </summary>
|
||||
public const string UserAgent = "User-Agent";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Service context parameters
|
||||
/// </summary>
|
||||
public static class ServiceContextParameters
|
||||
{
|
||||
/// <value>
|
||||
/// The institute code.
|
||||
/// </value>
|
||||
public const string InstituteCode = nameof(InstituteCode);
|
||||
|
||||
/// <value>
|
||||
/// The user identifier.
|
||||
/// </value>
|
||||
public const string UserId = nameof(UserId);
|
||||
|
||||
/// <value>
|
||||
/// The tutelary identifier.
|
||||
/// </value>
|
||||
public const string TutelaryId = nameof(TutelaryId);
|
||||
|
||||
/// <summary>
|
||||
/// User roles
|
||||
/// </summary>
|
||||
public const string UserRoles = nameof(UserRoles);
|
||||
|
||||
/// <value>
|
||||
/// The base URL.
|
||||
/// </value>
|
||||
public const string BaseUrl = nameof(BaseUrl);
|
||||
|
||||
/// <value>
|
||||
/// The API key.
|
||||
/// </value>
|
||||
public const string ApiKey = nameof(ApiKey);
|
||||
|
||||
/// <value>
|
||||
/// The user agent.
|
||||
/// </value>
|
||||
public const string UsertAgent = nameof(UsertAgent);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue