-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
3 changed files
with
51 additions
and
0 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,24 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace SauceLabs.Visual.GraphQL | ||
{ | ||
internal class Build | ||
{ | ||
[JsonProperty("id")] | ||
public string Id { get; } | ||
[JsonProperty("name")] | ||
public string Name { get; } | ||
[JsonProperty("url")] | ||
public string Url { get; } | ||
[JsonProperty("status")] | ||
public string Status { get; } | ||
|
||
public Build(string id, string name, string url, string status) | ||
{ | ||
Id = id; | ||
Name = name; | ||
Url = url; | ||
Status = status; | ||
} | ||
} | ||
} |
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 @@ | ||
namespace SauceLabs.Visual.GraphQL | ||
{ | ||
internal static class BuildQuery | ||
{ | ||
public const string OperationName = "build"; | ||
|
||
public const string OperationDocument = @" | ||
query build($input: UUID!) { | ||
result: build(input: $input) { | ||
id, | ||
url, | ||
name, | ||
status | ||
} | ||
} | ||
"; | ||
} | ||
} |
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