-
Notifications
You must be signed in to change notification settings - Fork 3
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 #64 from TunNetCom/Optimisation
optimisation
- Loading branch information
Showing
29 changed files
with
171 additions
and
189 deletions.
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
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
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
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
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
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
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
9 changes: 4 additions & 5 deletions
9
...reDevopsService.Contracts/AzureRequestResourceModel/AllProjectUnderOrganizationRequest.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,6 @@ | ||
namespace AzureDevopsService.Contracts.AzureRequestResourceModel | ||
namespace AzureDevopsService.Contracts.AzureRequestResourceModel; | ||
|
||
public class AllProjectUnderOrganizationRequest : BaseRequest | ||
{ | ||
public class AllProjectUnderOrganizationRequest : BaseRequest | ||
{ | ||
public required string OrganizationName { get; set; } | ||
} | ||
public required string OrganizationName { 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
27 changes: 13 additions & 14 deletions
27
src/AzureDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/WiqlRequest.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,22 +1,21 @@ | ||
using AzureDevopsService.Contracts.AzureRequestResourceModel; | ||
|
||
namespace AzureDevopsService.Contracts.AzureRequestResourceModel | ||
namespace AzureDevopsService.Contracts.AzureRequestResourceModel; | ||
|
||
public class WiqlRequest : BaseRequest | ||
{ | ||
public class WiqlRequest : BaseRequest | ||
{ | ||
[JsonProperty("query")] | ||
public string Query { get; set; } = string.Empty; | ||
[JsonProperty("query")] | ||
public string Query { get; set; } = string.Empty; | ||
|
||
[JsonProperty("organization")] | ||
public string Organization { get; set; } = string.Empty; | ||
[JsonProperty("organization")] | ||
public string Organization { get; set; } = string.Empty; | ||
|
||
[JsonProperty("project")] | ||
public string Project { get; set; } = string.Empty; | ||
[JsonProperty("project")] | ||
public string Project { get; set; } = string.Empty; | ||
|
||
[JsonProperty("team")] | ||
public string Team { get; set; } = string.Empty; | ||
[JsonProperty("team")] | ||
public string Team { get; set; } = string.Empty; | ||
|
||
[JsonProperty("apiVersion")] | ||
public string ApiVersion { get; set; } = string.Empty; | ||
} | ||
[JsonProperty("apiVersion")] | ||
public string ApiVersion { get; set; } = string.Empty; | ||
} |
11 changes: 5 additions & 6 deletions
11
...reDevopsService/AzureDevopsService.Contracts/AzureRequestResourceModel/WorkItemRequest.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,9 +1,8 @@ | ||
namespace AzureDevopsService.Contracts.AzureRequestResourceModel | ||
namespace AzureDevopsService.Contracts.AzureRequestResourceModel; | ||
|
||
public class WorkItemRequest : BaseRequest | ||
{ | ||
public class WorkItemRequest : BaseRequest | ||
{ | ||
public required string OrganisationName { get; set; } | ||
public required string OrganisationName { get; set; } | ||
|
||
public required string ProjectName { get; set; } | ||
} | ||
public required string ProjectName { get; set; } | ||
} |
21 changes: 9 additions & 12 deletions
21
src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/AllProjectResponce.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,15 +1,12 @@ | ||
namespace AzureDevopsService.Contracts.AzureResponceModel | ||
using System.Collections; | ||
|
||
namespace AzureDevopsService.Contracts.AzureResponceModel; | ||
|
||
public class AllProjectResponce : BaseRequest | ||
{ | ||
public class AllProjectResponce : BaseRequest | ||
{ | ||
[property: JsonProperty(PropertyName = "count", NullValueHandling = NullValueHandling.Ignore)] | ||
public int? Count { get; set; } | ||
[property: JsonProperty(PropertyName = "count", NullValueHandling = NullValueHandling.Ignore)] | ||
public int Count { get; set; } | ||
|
||
[property: JsonProperty(PropertyName = "value", NullValueHandling = NullValueHandling.Ignore)] | ||
#pragma warning disable CA1002 // Do not expose generic lists | ||
#pragma warning disable CA2227 // Collection properties should be read only | ||
public List<Project>? Value { get; set; } | ||
#pragma warning restore CA2227 // Collection properties should be read only | ||
#pragma warning restore CA1002 // Do not expose generic lists | ||
} | ||
[property: JsonProperty(PropertyName = "value", NullValueHandling = NullValueHandling.Ignore)] | ||
public IEnumerable<Project> Value { get; set; } = Enumerable.Empty<Project>(); | ||
} |
11 changes: 5 additions & 6 deletions
11
...psService/AzureDevopsService.Contracts/AzureResponceModel/CustomProblemDetailsResponce.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,9 +1,8 @@ | ||
namespace AzureDevopsService.Contracts.AzureResponceModel | ||
namespace AzureDevopsService.Contracts.AzureResponceModel; | ||
|
||
public class CustomProblemDetailsResponce : ProblemDetails | ||
{ | ||
public class CustomProblemDetailsResponce : ProblemDetails | ||
{ | ||
public string? Email { get; set; } | ||
public string Email { get; set; } = string.Empty; | ||
|
||
public string? Path { get; set; } | ||
} | ||
public string Path { get; set; } = string.Empty; | ||
} |
35 changes: 17 additions & 18 deletions
35
src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/Project.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,26 +1,25 @@ | ||
namespace AzureDevopsService.Contracts.AzureResponceModel | ||
namespace AzureDevopsService.Contracts.AzureResponceModel; | ||
|
||
public class Project | ||
{ | ||
public class Project | ||
{ | ||
[JsonProperty("id")] | ||
public Guid Id { get; set; } | ||
[JsonProperty("id")] | ||
public Guid Id { get; set; } | ||
|
||
[JsonProperty("name")] | ||
public string? Name { get; set; } | ||
[JsonProperty("name")] | ||
public string Name { get; set; } = string.Empty; | ||
|
||
[JsonProperty("url")] | ||
public Uri? Url { get; set; } | ||
[JsonProperty("url")] | ||
public Uri? Url { get; set; } | ||
|
||
[JsonProperty("state")] | ||
public string? State { get; set; } | ||
[JsonProperty("state")] | ||
public string State { get; set; } = string.Empty; | ||
|
||
[JsonProperty("revision")] | ||
public int Revision { get; set; } | ||
[JsonProperty("revision")] | ||
public int Revision { get; set; } | ||
|
||
[JsonProperty("visibility")] | ||
public string? Visibility { get; set; } | ||
[JsonProperty("visibility")] | ||
public string Visibility { get; set; } = string.Empty; | ||
|
||
[JsonProperty("lastUpdateTime")] | ||
public DateTime LastUpdateTime { get; set; } | ||
} | ||
[JsonProperty("lastUpdateTime")] | ||
public DateTime LastUpdateTime { get; set; } | ||
} |
19 changes: 7 additions & 12 deletions
19
src/AzureDevopsService/AzureDevopsService.Contracts/AzureResponceModel/UserAccount.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,15 +1,10 @@ | ||
namespace AzureDevopsService.Contracts.AzureResponceModel | ||
namespace AzureDevopsService.Contracts.AzureResponceModel; | ||
|
||
public class UserAccount : BaseRequest | ||
{ | ||
public class UserAccount : BaseRequest | ||
{ | ||
[property: JsonProperty(PropertyName = "count", NullValueHandling = NullValueHandling.Ignore)] | ||
public int? Count { get; set; } | ||
[property: JsonProperty(PropertyName = "count", NullValueHandling = NullValueHandling.Ignore)] | ||
public int Count { get; set; } | ||
|
||
[property: JsonProperty(PropertyName = "value", NullValueHandling = NullValueHandling.Ignore)] | ||
#pragma warning disable CA1002 // Do not expose generic lists | ||
#pragma warning disable CA2227 // Collection properties should be read only | ||
public List<UserOrganization>? Value { get; set; } | ||
#pragma warning restore CA2227 // Collection properties should be read only | ||
#pragma warning restore CA1002 // Do not expose generic lists | ||
} | ||
[property: JsonProperty(PropertyName = "value", NullValueHandling = NullValueHandling.Ignore)] | ||
public IEnumerable<UserOrganization> Value { get; set; } = Enumerable.Empty<UserOrganization>(); | ||
} |
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
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
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
Oops, something went wrong.