-
-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jamie.Rees
authored and
Jamie.Rees
committed
Nov 7, 2016
1 parent
367ca39
commit 0950f20
Showing
14 changed files
with
543 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Threading.Tasks; | ||
using Octokit; | ||
using PlexRequests.Core.Models; | ||
|
||
namespace PlexRequests.Core | ||
{ | ||
public interface IStatusChecker | ||
{ | ||
Task<StatusModel> GetStatus(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#region Copyright | ||
// /************************************************************************ | ||
// Copyright (c) 2016 Jamie Rees | ||
// File: SystemSettings.cs | ||
// Created By: Jamie Rees | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining | ||
// a copy of this software and associated documentation files (the | ||
// "Software"), to deal in the Software without restriction, including | ||
// without limitation the rights to use, copy, modify, merge, publish, | ||
// distribute, sublicense, and/or sell copies of the Software, and to | ||
// permit persons to whom the Software is furnished to do so, subject to | ||
// the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be | ||
// included in all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
// ************************************************************************/ | ||
#endregion | ||
|
||
using PlexRequests.Core.Models; | ||
|
||
namespace PlexRequests.Core.SettingModels | ||
{ | ||
public class SystemSettings : Settings | ||
{ | ||
public bool UseEarlyAccessPreviewBuilds { get; set; } | ||
|
||
public StatusModel Status { get; set; } | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
#region Copyright | ||
// /************************************************************************ | ||
// Copyright (c) 2016 Jamie Rees | ||
// File: AppveyorArtifactResult.cs | ||
// Created By: Jamie Rees | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining | ||
// a copy of this software and associated documentation files (the | ||
// "Software"), to deal in the Software without restriction, including | ||
// without limitation the rights to use, copy, modify, merge, publish, | ||
// distribute, sublicense, and/or sell copies of the Software, and to | ||
// permit persons to whom the Software is furnished to do so, subject to | ||
// the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be | ||
// included in all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
// ************************************************************************/ | ||
#endregion | ||
namespace PlexRequests.Core.StatusChecker | ||
{ | ||
public class AppveyorArtifactResult | ||
{ | ||
public string fileName { get; set; } | ||
public string type { get; set; } | ||
public int size { get; set; } | ||
} | ||
} |
138 changes: 138 additions & 0 deletions
138
PlexRequests.Core/StatusChecker/AppveyorBranchResult.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,138 @@ | ||
#region Copyright | ||
// /************************************************************************ | ||
// Copyright (c) 2016 Jamie Rees | ||
// File: AppveyorBranchResult.cs | ||
// Created By: Jamie Rees | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining | ||
// a copy of this software and associated documentation files (the | ||
// "Software"), to deal in the Software without restriction, including | ||
// without limitation the rights to use, copy, modify, merge, publish, | ||
// distribute, sublicense, and/or sell copies of the Software, and to | ||
// permit persons to whom the Software is furnished to do so, subject to | ||
// the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be | ||
// included in all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
// ************************************************************************/ | ||
#endregion | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace PlexRequests.Core.StatusChecker | ||
{ | ||
public class NuGetFeed | ||
{ | ||
public string id { get; set; } | ||
public string name { get; set; } | ||
public bool publishingEnabled { get; set; } | ||
public string created { get; set; } | ||
} | ||
|
||
public class AccessRightDefinition | ||
{ | ||
public string name { get; set; } | ||
public string description { get; set; } | ||
} | ||
|
||
public class AccessRight | ||
{ | ||
public string name { get; set; } | ||
public bool allowed { get; set; } | ||
} | ||
|
||
public class RoleAce | ||
{ | ||
public int roleId { get; set; } | ||
public string name { get; set; } | ||
public bool isAdmin { get; set; } | ||
public List<AccessRight> accessRights { get; set; } | ||
} | ||
|
||
public class SecurityDescriptor | ||
{ | ||
public List<AccessRightDefinition> accessRightDefinitions { get; set; } | ||
public List<RoleAce> roleAces { get; set; } | ||
} | ||
|
||
public class Project | ||
{ | ||
public int projectId { get; set; } | ||
public int accountId { get; set; } | ||
public string accountName { get; set; } | ||
public List<object> builds { get; set; } | ||
public string name { get; set; } | ||
public string slug { get; set; } | ||
public string repositoryType { get; set; } | ||
public string repositoryScm { get; set; } | ||
public string repositoryName { get; set; } | ||
public string repositoryBranch { get; set; } | ||
public bool isPrivate { get; set; } | ||
public bool skipBranchesWithoutAppveyorYml { get; set; } | ||
public bool enableSecureVariablesInPullRequests { get; set; } | ||
public bool enableSecureVariablesInPullRequestsFromSameRepo { get; set; } | ||
public bool enableDeploymentInPullRequests { get; set; } | ||
public bool rollingBuilds { get; set; } | ||
public bool alwaysBuildClosedPullRequests { get; set; } | ||
public string tags { get; set; } | ||
public NuGetFeed nuGetFeed { get; set; } | ||
public SecurityDescriptor securityDescriptor { get; set; } | ||
public string created { get; set; } | ||
public string updated { get; set; } | ||
} | ||
|
||
public class Job | ||
{ | ||
public string jobId { get; set; } | ||
public string name { get; set; } | ||
public bool allowFailure { get; set; } | ||
public int messagesCount { get; set; } | ||
public int compilationMessagesCount { get; set; } | ||
public int compilationErrorsCount { get; set; } | ||
public int compilationWarningsCount { get; set; } | ||
public int testsCount { get; set; } | ||
public int passedTestsCount { get; set; } | ||
public int failedTestsCount { get; set; } | ||
public int artifactsCount { get; set; } | ||
public string status { get; set; } | ||
public string started { get; set; } | ||
public string finished { get; set; } | ||
public string created { get; set; } | ||
public string updated { get; set; } | ||
} | ||
|
||
public class Build | ||
{ | ||
public int buildId { get; set; } | ||
public List<Job> jobs { get; set; } | ||
public int buildNumber { get; set; } | ||
public string version { get; set; } | ||
public string message { get; set; } | ||
public string branch { get; set; } | ||
public bool isTag { get; set; } | ||
public string commitId { get; set; } | ||
public string authorName { get; set; } | ||
public string committerName { get; set; } | ||
public string committed { get; set; } | ||
public List<object> messages { get; set; } | ||
public string status { get; set; } | ||
public string started { get; set; } | ||
public string finished { get; set; } | ||
public string created { get; set; } | ||
public string updated { get; set; } | ||
} | ||
|
||
public class AppveyorBranchResult | ||
{ | ||
public Project project { get; set; } | ||
public Build build { get; set; } | ||
} | ||
} |
Oops, something went wrong.