Files
UnrealEngineUWP/Engine/Source/Programs/CrashReporter/CrashReportWebSite/ViewModels/BuggViewModel.cs
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

52 lines
1.7 KiB
C#

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Web.Mvc;
using Tools.CrashReporter.CrashReportWebSite.DataModels;
namespace Tools.CrashReporter.CrashReportWebSite.ViewModels
{
/// <summary>
/// The view model for the bugg show page.
/// </summary>
public class BuggViewModel
{
/// <summary>The current Bugg to display details of.</summary>
public Bugg Bugg { get; set; }
/// <summary>A container for all the crashes associated with this Bugg.</summary>
public List<Crash> Crashes { get; set; }
/// <summary>The call stack common to all crashes in this Bugg.</summary>
public CallStackContainer CallStack { get; set; }
/// <summary></summary>
public string SourceContext { get; set; }
/// <summary>Time spent in generating this site, formatted as a string.</summary>
public string GenerationTime { get; set; }
/// <summary> Description of most recent crash </summary>
public string LatestCrashSummary { get; set; }
/// <summary>Select list of jira projects</summary>
public List<SelectListItem> JiraProjects;
/// <summary>Jira Project to which to add a new bugg.</summary>
public string JiraProject { get; set; }
/// <summary>
/// Constructor for BuggViewModel class.
/// </summary>
public BuggViewModel()
{
JiraProjects = new List<SelectListItem>()
{
new SelectListItem(){ Text = "UE", Value = "UE"},
new SelectListItem(){ Text = "FORT", Value = "FORT"},
new SelectListItem(){ Text = "ORION", Value = "ORION"},
};
}
}
}