API Reference
Class
GitHubRepositoryWatchRecord
Canonical GitHub repository watch definition for tray and reporting features.
Inheritance
- Object
- GitHubRepositoryWatchRecord
Constructors
public GitHubRepositoryWatchRecord(String id, String repositoryNameWithOwner, DateTimeOffset createdAtUtc) #Initializes a new repository watch definition.
Parameters
- id System.String
- Stable watch identifier.
- repositoryNameWithOwner System.String
- Repository name in owner/name form.
- createdAtUtc System.DateTimeOffset
- UTC timestamp when the watch was created.
Methods
public static String CreateStableId(String repositoryNameWithOwner) #Returns:
StringCreates a deterministic watch identifier from a repository name.
Parameters
- repositoryNameWithOwner System.String
- Repository name in owner/name form.
Returns
Stable repository watch identifier.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Id { get; } #Gets the stable watch identifier.
public String RepositoryNameWithOwner { get; } #Gets the canonical repository name in owner/name form.
public String Owner { get; } #Gets the repository owner login.
public String Repository { get; } #Gets the repository name.
public String DisplayName { get; set; } #Gets or sets the optional user-facing label.
public String Category { get; set; } #Gets or sets the optional watch category or grouping label.
public String Notes { get; set; } #Gets or sets optional freeform notes for the watch.
public Boolean Enabled { get; set; } #Gets or sets whether the watch is active.
public DateTimeOffset CreatedAtUtc { get; } #Gets the UTC timestamp when the watch was created.