Class GitHubEventResult.Event
Actual GitHub Event type
Inheritance
System.Object
GitHubEventResult.Event
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sloader.Result.Types
Assembly: Sloader.Result.dll
Syntax
public class Event : IHaveRawContent
Properties
View SourceActor
Who issued the event
Declaration
public string Actor { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CreatedAt
DateTime when the event happend
Declaration
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Id
Each GitHubEvent has its own unique ID
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Organization
Defines the org on GitHub
Declaration
public string Organization { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RawContent
JSON serialized complete event data
Declaration
public string RawContent { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RelatedAction
Based on the Type a more descriptive and related action.
e.g. IssueEvent occured and you need to know if the issue is opened, closed etc.
On PullRequests: The closed and IsMerged=true property is handled as merged
Declaration
public string RelatedAction { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RelatedBody
Based on the Type some more information.
e.g. Issue Descritpion etc.
Declaration
public string RelatedBody { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RelatedDescription
Based on the Type some more information.
e.g. Issue Title etc.
Declaration
public string RelatedDescription { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RelatedUrl
Based on the Type the target url.
Declaration
public string RelatedUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Repository
Defines the repo on GitHub
Declaration
public string Repository { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
GitHub Event Type, e.g. CommitEvent or CreateEvent
Full reference: https://developer.github.com/v3/activity/events/types/
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |