-
Notifications
You must be signed in to change notification settings - Fork 0
/
Options.cs
30 lines (24 loc) · 996 Bytes
/
Options.cs
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
30
using CommandLine;
namespace GeniusSports.AblyMatchStateSubscriberExample
{
class Options
{
private const string SecretHelpText =
"Get from Genius Sports support team. Email: apikey@geniussports.com";
[Option("client-id", Required = true, HelpText = SecretHelpText)]
public string ClientId { get; }
[Option("client-secret", Required = true, HelpText = SecretHelpText)]
public string ClientSecret { get; }
[Option("api-key", Required = true, HelpText = SecretHelpText)]
public string ApiKey { get; }
[Option("environment", Required = true, HelpText = "Possible values: ci, uat, prod")]
public Environment Environment { get; }
public Options(string clientId, string clientSecret, string apiKey, Environment environment)
{
ClientId = clientId;
ClientSecret = clientSecret;
ApiKey = apiKey;
Environment = environment;
}
}
}