You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Twilio.AspNet.Common/TwilioRequest.cs
+11-11
Original file line number
Diff line number
Diff line change
@@ -8,61 +8,61 @@ public abstract class TwilioRequest
8
8
/// <summary>
9
9
/// Your Twilio account id. It is 34 characters long, and always starts with the letters AC
10
10
/// </summary>
11
-
publicstringAccountSid{get;set;}
11
+
publicstringAccountSid{get;set;}=null!;
12
12
13
13
/// <summary>
14
14
/// The phone number or client identifier of the party that initiated the call
15
15
/// </summary>
16
16
/// <remarks>
17
17
/// Phone numbers are formatted with a '+' and country code, e.g. +16175551212 (E.164 format). Client identifiers begin with the client: URI scheme; for example, for a call from a client named 'tommy', the From parameter will be client:tommy.
18
18
/// </remarks>
19
-
publicstringFrom{get;set;}
19
+
publicstringFrom{get;set;}=null!;
20
20
21
21
/// <summary>
22
22
/// The phone number or client identifier of the called party
23
23
/// </summary>
24
24
/// <remarks>
25
25
/// Phone numbers are formatted with a '+' and country code, e.g. +16175551212 (E.164 format). Client identifiers begin with the client: URI scheme; for example, for a call to a client named 'jenny', the To parameter will be client:jenny.
Copy file name to clipboardExpand all lines: src/Twilio.AspNet.Common/VoiceRequest.cs
+27-27
Original file line number
Diff line number
Diff line change
@@ -9,53 +9,53 @@ public class VoiceRequest : TwilioRequest
9
9
/// <summary>
10
10
/// A unique identifier for this call, generated by Twilio
11
11
/// </summary>
12
-
publicstringCallSid{get;set;}
12
+
publicstringCallSid{get;set;}=null!;
13
13
14
14
/// <summary>
15
15
/// A descriptive status for the call. The value is one of queued, ringing, in-progress, completed, busy, failed or no-answer
16
16
/// </summary>
17
-
publicstringCallStatus{get;set;}
17
+
publicstringCallStatus{get;set;}=null!;
18
18
19
19
/// <summary>
20
20
/// The version of the Twilio API used to handle this call. For incoming calls, this is determined by the API version set on the called number. For outgoing calls, this is the API version used by the outgoing call's REST API request
21
21
/// </summary>
22
-
publicstringApiVersion{get;set;}
22
+
publicstringApiVersion{get;set;}=null!;
23
23
24
24
/// <summary>
25
25
/// Indicates the direction of the call. In most cases this will be inbound, but if you are using Dial it will be outbound-dial
26
26
/// </summary>
27
-
publicstringDirection{get;set;}
27
+
publicstringDirection{get;set;}=null!;
28
28
29
29
/// <summary>
30
30
/// This parameter is set only when Twilio receives a forwarded call, but its value depends on the caller's carrier including information when forwarding. Not all carriers support passing this information
31
31
/// </summary>
32
-
publicstringForwardedFrom{get;set;}
32
+
publicstring?ForwardedFrom{get;set;}
33
33
34
34
/// <summary>
35
35
/// This parameter is set when the IncomingPhoneNumber that received the call has had its VoiceCallerIdLookup value set to true.
36
36
/// </summary>
37
-
publicstringCallerName{get;set;}
37
+
publicstring?CallerName{get;set;}
38
38
39
39
/// <summary>
40
40
/// A unique identifier for the call that created this leg. This parameter is not passed if this is the first leg of a call.
41
41
/// </summary>
42
-
publicstringParentCallSid{get;set;}
42
+
publicstring?ParentCallSid{get;set;}
43
43
44
44
/// <summary>A token string needed to invoke a forwarded call.</summary>
45
-
publicstringCallToken{get;set;}
45
+
publicstring?CallToken{get;set;}
46
46
47
47
#region Gather & Record Parameters
48
48
49
49
/// <summary>
50
50
/// When used with the Gather verb, the digits the caller pressed, excluding the finishOnKey digit if used.
51
51
/// When used with the Record verb, the key (if any) pressed to end the recording or 'hangup' if the caller hung up
52
52
/// </summary>
53
-
publicstringDigits{get;set;}
53
+
publicstring?Digits{get;set;}
54
54
55
55
/// <summary>
56
56
/// When used with the Gather verb, the transcribed result of the speech
57
57
/// </summary>
58
-
publicstringSpeechResult{get;set;}
58
+
publicstring?SpeechResult{get;set;}
59
59
60
60
/// <summary>
61
61
/// When used with the Gather verb, a confidence score between 0.0 and 1.0 respectively.
@@ -66,17 +66,17 @@ public class VoiceRequest : TwilioRequest
66
66
/// <summary>
67
67
/// The URL of the recorded audio. When the result of a transcription, the URL for the transcription's source recording resource.
68
68
/// </summary>
69
-
publicstringRecordingUrl{get;set;}
69
+
publicstring?RecordingUrl{get;set;}
70
70
71
71
/// <summary>
72
72
/// The status of the recording. Possible values are: completed, failed.
73
73
/// </summary>
74
-
publicstringRecordingStatus{get;set;}
74
+
publicstring?RecordingStatus{get;set;}
75
75
76
76
/// <summary>
77
77
/// The duration of the recorded audio (in seconds)
78
78
/// </summary>
79
-
publicstringRecordingDuration{get;set;}
79
+
publicstring?RecordingDuration{get;set;}
80
80
81
81
/// <summary>
82
82
/// The number of channels in the final recording file as an integer.
@@ -86,12 +86,12 @@ public class VoiceRequest : TwilioRequest
86
86
/// <summary>
87
87
/// The source of the recorded audio.
88
88
/// </summary>
89
-
publicstringRecordingSource{get;set;}
89
+
publicstring?RecordingSource{get;set;}
90
90
91
91
/// <summary>
92
92
/// The key used to submit the digits
93
93
/// </summary>
94
-
publicstringFinishedOnKey{get;set;}
94
+
publicstring?FinishedOnKey{get;set;}
95
95
96
96
#endregion
97
97
@@ -100,27 +100,27 @@ public class VoiceRequest : TwilioRequest
100
100
/// <summary>
101
101
/// The unique 34 character ID of the transcription
102
102
/// </summary>
103
-
publicstringTranscriptionSid{get;set;}
103
+
publicstring?TranscriptionSid{get;set;}
104
104
105
105
/// <summary>
106
106
/// Contains the text of the transcription
107
107
/// </summary>
108
-
publicstringTranscriptionText{get;set;}
108
+
publicstring?TranscriptionText{get;set;}
109
109
110
110
/// <summary>
111
111
/// The status of the transcription attempt: either 'completed' or 'failed'
112
112
/// </summary>
113
-
publicstringTranscriptionStatus{get;set;}
113
+
publicstring?TranscriptionStatus{get;set;}
114
114
115
115
/// <summary>
116
116
/// The URL for the transcription's REST API resource
117
117
/// </summary>
118
-
publicstringTranscriptionUrl{get;set;}
118
+
publicstring?TranscriptionUrl{get;set;}
119
119
120
120
/// <summary>
121
121
/// The unique 34 character ID of the recording from which the transcription was generated
122
122
/// </summary>
123
-
publicstringRecordingSid{get;set;}
123
+
publicstring?RecordingSid{get;set;}
124
124
125
125
#endregion
126
126
@@ -129,17 +129,17 @@ public class VoiceRequest : TwilioRequest
129
129
/// <summary>
130
130
/// The outcome of the Dial attempt. See the DialCallStatus section below for details
131
131
/// </summary>
132
-
publicstringDialCallStatus{get;set;}
132
+
publicstring?DialCallStatus{get;set;}
133
133
134
134
/// <summary>
135
135
/// The call sid of the new call leg. This parameter is not sent after dialing a conference
136
136
/// </summary>
137
-
publicstringDialCallSid{get;set;}
137
+
publicstring?DialCallSid{get;set;}
138
138
139
139
/// <summary>
140
140
/// The duration in seconds of the dialed call. This parameter is not sent after dialing a conference
141
141
/// </summary>
142
-
publicstringDialCallDuration{get;set;}
142
+
publicstring?DialCallDuration{get;set;}
143
143
144
144
#endregion
145
145
@@ -148,22 +148,22 @@ public class VoiceRequest : TwilioRequest
148
148
/// <summary>
149
149
/// The Twilio SIP Domain to which the INVITE was sent
150
150
/// </summary>
151
-
publicstringSipDomain{get;set;}
151
+
publicstring?SipDomain{get;set;}
152
152
153
153
/// <summary>
154
154
/// The username given when authenticating the request, if Credential List is the authentication method.
0 commit comments