Skip to content

Commit

Permalink
Merge branch 'main' into feat/fax-api-support
Browse files Browse the repository at this point in the history
  • Loading branch information
Dovchik committed Nov 25, 2024
2 parents f2dad80 + e9eac57 commit 4a14b99
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Sinch/Voice/Callouts/Callout/DestinationType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public record DestinationType(string Value) : EnumRecord(Value)
{
public static readonly DestinationType Number = new("number");
public static readonly DestinationType Username = new("username");

public static readonly DestinationType Sip = new("sip");
}
}
11 changes: 8 additions & 3 deletions src/Sinch/Voice/Common/Destination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@ public override string ToString()
[JsonConverter(typeof(EnumRecordJsonConverter<DestinationType>))]
public record DestinationType(string Value) : EnumRecord(Value)
{

public static readonly DestinationType Number = new("Number");
public static readonly DestinationType Username = new("Username");
/// <summary>
/// Destination ptsn
/// </summary>
public static readonly DestinationType Number = new("number");
/// <summary>
/// Destination mxp
/// </summary>
public static readonly DestinationType Username = new("username");
public static readonly DestinationType Sip = new("sip");
public static readonly DestinationType Did = new("did");
}
Expand Down
3 changes: 2 additions & 1 deletion src/Sinch/Voice/Hooks/To.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using Sinch.Voice.Common;

namespace Sinch.Voice.Hooks
{
Expand All @@ -11,7 +12,7 @@ public class To
/// The type of the destination.
/// </summary>
[JsonPropertyName("type")]
public string? Type { get; set; }
public Destination? Type { get; set; }

/// <summary>
/// The phone number, user name, or other identifier of the destination.
Expand Down

0 comments on commit 4a14b99

Please sign in to comment.