Files
UnrealEngineUWP/Engine/Source/Programs/AutomationTool/BuildGraph/Badge.cs
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

60 lines
1.4 KiB
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomationTool
{
/// <summary>
/// Defines a badge which gives an at-a-glance summary of part of the build, and can be displayed in UGS
/// </summary>
class Badge
{
/// <summary>
/// Name of this badge
/// </summary>
public readonly string Name;
/// <summary>
/// Depot path to the project that this badge applies to. Used for filtering in UGS.
/// </summary>
public readonly string Project;
/// <summary>
/// The changelist to post the badge for
/// </summary>
public readonly int Change;
/// <summary>
/// Set of nodes that this badge reports the status of
/// </summary>
public HashSet<Node> Nodes = new HashSet<Node>();
/// <summary>
/// Constructor
/// </summary>
/// <param name="InName">Name of this report</param>
/// <param name="InProject">Depot path to the project that this badge applies to</param>
/// <param name="InChange">The changelist to post the badge for</param>
public Badge(string InName, string InProject, int InChange)
{
Name = InName;
Project = InProject;
Change = InChange;
}
/// <summary>
/// Get the name of this badge
/// </summary>
/// <returns>The name of this badge</returns>
public override string ToString()
{
return Name;
}
}
}