-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConstants.cs
More file actions
29 lines (25 loc) · 877 Bytes
/
Copy pathConstants.cs
File metadata and controls
29 lines (25 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Reflection;
namespace PostcodeAPI
{
public static class Constants
{
public static string AssemblyVersion => Assembly.GetAssembly(typeof(Constants)).GetName().Version.ToString(2);
public static class APIBaseUrls
{
public const string V1 = "http://api.postcodeapi.nu/";
public const string V2 = "https://postcode-api.apiwise.nl/v2/";
}
public static class APIHeaderKeys
{
public const string AuthKeyV1 = "Api-Key";
public const string AuthKeyV2 = "X-Api-Key";
public const string UserAgentFormatString = "PostcodeAPI.Net v{0}";
}
public static class PostcodeFormatTypes
{
public const string P4 = "p4";
public const string P5 = "p5";
public const string P6 = "p6";
}
}
}