-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWitClient.cs
31 lines (28 loc) · 1005 Bytes
/
WitClient.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
31
using System;
namespace WitSharp
{
public class WitClient
{
public Entities Entities { get; }
public Training Training { get; }
public Application Application { get; }
internal static string Token { get; private set; }
/// <summary>
/// Initialize a new instance of WitClient. Inject it.
/// </summary>
/// <param name="accessToken">Your application's access token.</param>
/// <exception cref="ArgumentNullException"><param name="accessToken"/> is <c>null</c></exception>
public WitClient(string accessToken)
{
if (string.IsNullOrWhiteSpace(accessToken))
throw new ArgumentNullException(nameof(accessToken), "Application's access token is required.");
Token = accessToken;
Entities = new Entities();
Training = new Training();
Application = new Application();
}
internal WitClient()
{
}
}
}