﻿using Newtonsoft.Json;

namespace nH.Processing.Models.GitHub
{
	public class GhPayload
	{
		[JsonProperty(PropertyName = "ref")]
		public string Ref { get; set; }

		[JsonProperty(PropertyName = "after")]
		public string After { get; set; }

		[JsonProperty(PropertyName = "before")]
		public string Before { get; set; }

		[JsonProperty(PropertyName = "created")]
		public bool Created { get; set; }

		[JsonProperty(PropertyName = "deleted")]
		public bool Deleted { get; set; }

		[JsonProperty(PropertyName = "forced")]
		public bool Forced { get; set; }

		[JsonProperty(PropertyName = "compare")]
		public string Compare { get; set; }

		[JsonProperty(PropertyName = "commits")]
		public GhCommit[] Commits { get; set; }

		[JsonProperty(PropertyName = "head_commit")]
		public GhCommit HeadCommit { get; set; }

		[JsonProperty(PropertyName = "repository")]
		public GhRepo Repository { get; set; }

		[JsonProperty(PropertyName = "pusher")]
		public GhPusher Pusher { get; set; }
	}
}