-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #319 from Roti12/master
Add ability to select ticket_form_id when updating a ticket
- Loading branch information
Showing
9 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/ZendeskApi.Client/Models/Status/Included/Attributes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace ZendeskApi.Client.Models.Status.Included; | ||
|
||
public class Attributes | ||
{ | ||
[JsonProperty("created_at")] | ||
public DateTime? CreatedAt { get; set; } | ||
|
||
[JsonProperty("description")] | ||
public string Description { get; set; } | ||
|
||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty("slug")] | ||
public string Slug { get; set; } | ||
|
||
[JsonProperty("degradation")] | ||
public bool? Degradation { get; set; } | ||
|
||
[JsonProperty("incident_id")] | ||
public string IncidentId { get; set; } | ||
|
||
[JsonProperty("outage")] | ||
public bool? Outage { get; set; } | ||
|
||
[JsonProperty("resolved_at")] | ||
public DateTime? ResolvedAt { get; set; } | ||
|
||
[JsonProperty("service_id")] | ||
public string ServiceId { get; set; } | ||
|
||
[JsonProperty("started_at")] | ||
public DateTime? StartedAt { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace ZendeskApi.Client.Models.Status.Included; | ||
|
||
public class Included | ||
{ | ||
[JsonProperty("attributes")] | ||
public Attributes Attributes { get; set; } | ||
|
||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
[JsonProperty("type")] | ||
public Type Type { get; set; } | ||
|
||
[JsonProperty("relationships")] | ||
public Relationships Relationships { get; set; } | ||
} |
13 changes: 13 additions & 0 deletions
13
src/ZendeskApi.Client/Models/Status/Included/IncludedReference.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Linq; | ||
|
||
namespace ZendeskApi.Client.Models.Status.Included; | ||
|
||
public class IncludedReference | ||
{ | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
[JsonProperty("type")] | ||
public Type Type { get; set; } | ||
} |
9 changes: 9 additions & 0 deletions
9
src/ZendeskApi.Client/Models/Status/Included/Relationships.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace ZendeskApi.Client.Models.Status.Included; | ||
|
||
public class Relationships | ||
{ | ||
[JsonProperty("service")] | ||
public Service Service { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace ZendeskApi.Client.Models.Status.Included; | ||
|
||
public class Service : DataContainer<IncludedReference> | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace ZendeskApi.Client.Models.Status.Included; | ||
|
||
public enum Type | ||
{ | ||
[EnumMember(Value = "service")] | ||
Service, | ||
[EnumMember(Value = "incident_service")] | ||
IncidentService, | ||
[EnumMember(Value = "incident_update")] | ||
IncidentUpdate, | ||
[EnumMember(Value = "incident")] | ||
Incident | ||
} |
3 changes: 3 additions & 0 deletions
3
src/ZendeskApi.Client/Models/Status/Response/ListIncidentsResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace ZendeskApi.Client.Models.Status.Response; | ||
|
||
public class ListIncidentsResponse : DataContainer<IReadOnlyList<Incident>> | ||
{ | ||
[JsonProperty("included")] | ||
public IReadOnlyList<Included.Included> Included { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters