Files
octokit.net/Octokit/Models/Response/EventInfo.cs

69 lines
1.8 KiB
C#

using System;
namespace Octokit
{
public class EventInfo
{
public Uri Url { get; set; }
/// <summary>
/// Always the User that generated the event
/// </summary>
public Actor Actor { get; set; }
/// <summary>
/// Identifies the actual type of Event that occurred
/// </summary>
public EventInfoState InfoState { get; set; }
/// <summary>
/// The String SHA of a commit that referenced this Issue
/// </summary>
public string CommitId { get; set; }
/// <summary>
/// Date the event occurred for the issue/pull request.
/// </summary>
public DateTimeOffset CreatedAt { get; set; }
}
public enum EventInfoState
{
/// <summary>
/// The issue was closed by the actor. When the commit_id is present, it identifies the commit that
/// closed the issue using “closes / fixes #NN” syntax.
/// </summary>
Closed,
/// <summary>
/// The issue was reopened by the actor.
/// </summary>
Reopened,
/// <summary>
/// The actor subscribed to receive notifications for an issue.
/// </summary>
Subscribed,
/// <summary>
/// The issue was merged by the actor. The commit_id attribute is the SHA1 of the HEAD commit that was merged.
/// </summary>
Merged,
/// <summary>
/// The issue was referenced from a commit message. The commit_id attribute is the commit SHA1 of where
/// that happened.
/// </summary>
Referenced,
/// <summary>
/// The actor was @mentioned in an issue body.
/// </summary>
Mentioned,
/// <summary>
/// The issue was assigned to the actor.
/// </summary>
Assigned
}
}