Files
UnrealEngineUWP/Engine/Source/Programs/CrashReporter/CrashReportWebSite/Models/CSVViewModel.cs
Jaroslaw Surowiec e4cf3bb163 CrashReportWWW - Added CSV controller
[CL 2537055 by Jaroslaw Surowiec in Main branch]
2015-05-05 04:56:03 -04:00

56 lines
1.5 KiB
C#

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Tools.CrashReporter.CrashReportWebSite.Controllers;
using System.IO;
namespace Tools.CrashReporter.CrashReportWebSite.Models
{
/// <summary>
/// The view model for the crash summary page.
/// </summary>
public class CSV_ViewModel
{
/// <summary>A container of sorted CSV rows.</summary>
public List<FCSVRow> CSVRows { get; set; }
/// <summary>The date of the earliest crash in a Bugg.</summary>
public long DateFrom { get; set; }
/// <summary>The date of the most recent crash in a Bugg.</summary>
public long DateTo { get; set; }
/// <summary></summary>
public int TotalAnonymousCrashes { get; set; }
/// <summary></summary>
public int TotalUniqueAnonymousCrashes { get; set; }
/// <summary></summary>
public int TotalAffectedUsers { get; set; }
/// <summary>Pathname where the CSV file is saved.</summary>
public string CSVPathname { get; set; }
/// <summary>Filename of the CSV file</summary>
public string GetCSVFilename()
{
return Path.GetFileName( CSVPathname );
}
/// <summary>Directory where the CSV files are saved.</summary>
public string GetCSVDirectory()
{
return Path.GetDirectoryName( CSVPathname );
}
/// <summary>Time spent in generating this site, formatted as a string.</summary>
public string GenerationTime { get; set; }
/// <summary>User input from the client.</summary>
public FormCollection FormCollection { get; set; }
}
}