This repository was archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathIPullRequestCheckViewModel.cs
More file actions
70 lines (59 loc) · 1.8 KB
/
IPullRequestCheckViewModel.cs
File metadata and controls
70 lines (59 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System;
using System.Reactive;
using GitHub.Models;
using ReactiveUI;
namespace GitHub.ViewModels.GitHubPane
{
/// <summary>
/// Represents a view model for displaying details of a pull request Status or Check.
/// </summary>
public interface IPullRequestCheckViewModel: IViewModel
{
/// <summary>
/// The flag to show this Status/Check is required.
/// </summary>
bool IsRequired { get; }
/// <summary>
/// The title of the Status/Check.
/// </summary>
string Title { get; }
/// <summary>
/// The description of the Status/Check.
/// </summary>
string Description { get; }
/// <summary>
/// The status of the Status/Check.
/// </summary>
PullRequestCheckStatus Status { get; }
/// <summary>
/// The url where more information about the Status/Check can be found.
/// </summary>
Uri DetailsUrl { get; }
/// <summary>
/// The amount of time this Status/Check took to run.
/// </summary>
string DurationStatus { get; }
/// <summary>
/// A command that opens the DetailsUrl in a browser.
/// </summary>
ReactiveCommand<Unit, Unit> OpenDetailsUrl { get; }
/// <summary>
/// Gets the type of check run, Status/Check.
/// </summary>
PullRequestCheckType CheckType { get; }
/// <summary>
/// Gets the id of the check run.
/// </summary>
string CheckRunId { get; }
/// <summary>
/// Gets a flag to show this check run has annotations.
/// </summary>
bool HasAnnotations { get; }
}
public enum PullRequestCheckStatus
{
Pending,
Success,
Failure
}
}