-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTwilioDotConfigSection.cs
55 lines (47 loc) · 1.76 KB
/
TwilioDotConfigSection.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
namespace TwilioDotConfig
{
public class TwilioDotConfigSection:ConfigurationSection
{
[ConfigurationProperty("accountSid", DefaultValue = "", IsRequired = false)]
public string accountSid
{
get { return (string)this["accountSid"]; }
set { this["accountSid"] = value; }
}
[ConfigurationProperty("authToken", DefaultValue = "", IsRequired = false)]
public string authToken
{
get { return (string)this["authToken"]; }
set { this["authToken"] = value; }
}
[ConfigurationProperty("accountResourceSid", DefaultValue = "", IsRequired = false)]
public string accountResourceSid
{
get { return (string)this["accountResourceSid"]; }
set { this["accountResourceSid"] = value; }
}
[ConfigurationProperty("TwilioBaseURL", DefaultValue = "https://api.twilio.com/", IsRequired = false)]
public string TwilioBaseURL
{
get { return (string)this["TwilioBaseURL"]; }
set { this["TwilioURL"] = value; }
}
[ConfigurationProperty("UseTwilioProductionURL", DefaultValue = "false", IsRequired = false)]
public bool UseTwilioProductionURL
{
get { return (bool)this["UseTwilioProductionURL"]; }
set { this["UseTwilioProductionURL"] = value; }
}
[ConfigurationProperty("ThrowExceptions", DefaultValue = "false", IsRequired = false)]
public bool ThrowExceptions
{
get { return (bool)this["ThrowExceptions"]; }
set { this["ThrowExceptions"] = value; }
}
}
}