Skip to content

Commit

Permalink
Merge pull request #129 from georgechond94/master
Browse files Browse the repository at this point in the history
ShortenUrls added to Message and MessageOptionalArguments
  • Loading branch information
rfeiner authored Dec 15, 2023
2 parents ee6cca2 + 4e4093a commit 85bf604
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MessageBird/Objects/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class MessageOptionalArguments
public DataEncoding Encoding { get; set; }
public MessageClass Class { get; set; }
public DateTime? Scheduled { get; set; }
public bool ShortenUrls { get; set; }

public MessageOptionalArguments()
{
Expand Down Expand Up @@ -135,6 +136,9 @@ public string Originator

[JsonProperty("recipients"), JsonConverter(typeof(RecipientsConverter))]
public Recipients Recipients { get; set; }

[JsonProperty("shortenUrls")]
public bool ShortenUrls { get; set; }

public Message()
{
Expand Down Expand Up @@ -162,6 +166,7 @@ public Message(string originator, string body, Recipients recipients, MessageOpt
Encoding = optionalArguments.Encoding;
Class = optionalArguments.Class;
Scheduled = optionalArguments.Scheduled;
ShortenUrls = optionalArguments.ShortenUrls;
}

public override string ToString()
Expand Down

0 comments on commit 85bf604

Please sign in to comment.