8000 Fix for #156 by brondavies · Pull Request #159 · twilio-labs/twilio-aspnet · GitHub
[go: up one dir, main page]

Skip to content

Fix for #156 #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/Twilio.AspNet.Common/SmsRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ public class SmsRequest : TwilioRequest
/// <summary>
/// A 34 character unique identifier for the message. May be used to later retrieve this message from the REST API.
/// </summary>
public string MessageSid { get; set; } = null!;
public string? MessageSid { get; set; } = null;

/// <summary>
/// Same value as MessageSid. Deprecated and included for backward compatibility.
/// </summary>
[Obsolete("Use MessageSid instead")]
public string SmsSid { get; set; }= null!;
public string? SmsSid { get; set; } = null;

/// <summary>
/// The text body of the SMS message. Up to 160 characters long
/// </summary>
public string Body { get; set; }= null!;
public string? Body { get; set; } = null;

/// <summary>
/// The status of the message
/// </summary>
public string MessageStatus { get; set; }= null!;
public string? MessageStatus { get; set; } = null;

/// <summary>
/// The message OptOut type
Expand All @@ -36,7 +36,7 @@ public class SmsRequest : TwilioRequest
/// A unique identifier of the messaging service
/// </summary>
public string? MessagingServiceSid { get; set; }

/// <summary>
/// The number of media items associated with your message
/// </summary>
Expand All @@ -51,5 +51,5 @@ public class SmsRequest : TwilioRequest
/// The number of media files associated with the Message resource
/// </summary>
public int NumSegments { get; set; }

}
0