mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// Describes a new deployment status to create.
|
|
/// </summary>
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class NewDeploymentStatus
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="NewDeploymentStatus"/> class.
|
|
/// </summary>
|
|
/// <param name="deploymentState">State of the deployment (Required).</param>
|
|
public NewDeploymentStatus(DeploymentState deploymentState)
|
|
{
|
|
State = deploymentState;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The state of the status.
|
|
/// </summary>
|
|
public DeploymentState State { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The target URL to associate with this status. This URL should contain
|
|
/// output to keep the user updated while the task is running or serve as
|
|
/// historical information for what happened in the deployment
|
|
/// </summary>
|
|
public string TargetUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// A short description of the status.
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "State: {0}", State);
|
|
}
|
|
}
|
|
}
|
|
} |