Skip to content

Commit

Permalink
dvanwinkle/Speedygeek#158: Added fields formatted_phone and phone to …
Browse files Browse the repository at this point in the history
…the To & From models
  • Loading branch information
Dan VanWinkle committed Nov 4, 2015
1 parent 1af96bc commit 43fb3cf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
14 changes: 12 additions & 2 deletions ZendeskApi_v2/Models/Tickets/From.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@

namespace ZendeskApi_v2.Models.Tickets
{

public class From
{

[JsonProperty("address")]
public string Address { get; set; }

[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// Will be populated when Ticket.Via.Channel = 'Voice'. See https://github.com/mozts2005/ZendeskApi_v2/issues/158.
/// </summary>
[JsonProperty("formatted_phone")]
public string FormattedPhone { get; set; }

/// <summary>
/// Will be populated when Ticket.Via.Channel = 'Voice'. See https://github.com/mozts2005/ZendeskApi_v2/issues/158.
/// </summary>
[JsonProperty("phone")]
public string Phone { get; set; }
}
}
15 changes: 12 additions & 3 deletions ZendeskApi_v2/Models/Tickets/To.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
using Newtonsoft.Json;
using ZendeskApi_v2.Models.Shared;

namespace ZendeskApi_v2.Models.Tickets
{

public class To
{

[JsonProperty("address")]
public string Address { get; set; }

[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// Will be populated when Ticket.Via.Channel = 'Voice'. See https://github.com/mozts2005/ZendeskApi_v2/issues/158.
/// </summary>
[JsonProperty("formatted_phone")]
public string FormattedPhone { get; set; }

/// <summary>
/// Will be populated when Ticket.Via.Channel = 'Voice'. See https://github.com/mozts2005/ZendeskApi_v2/issues/158.
/// </summary>
[JsonProperty("phone")]
public string Phone { get; set; }
}
}

0 comments on commit 43fb3cf

Please sign in to comment.