Files
UnrealEngineUWP/Engine/Source/Programs/CrashReporter/CrashReportWebSite/Models/CSVViewModel.cs
Jaroslaw Surowiec 89dd15a6b6 CrashReportWWW - CSV controller, revision 2
[CL 2537191 by Jaroslaw Surowiec in Main branch]
2015-05-05 07:48:32 -04:00

74 lines
2.1 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.</summary>
public long DateFrom { get; set; }
/// <summary>The date of the most recent crash.</summary>
public long DateTo { get; set; }
/// <summary>The date of the earliest crash.</summary>
public DateTime DateTimeFrom { get; set; }
/// <summary>The date of the most recent crash.</summary>
public DateTime DateTimeTo { get; set; }
/// <summary>Unique Anonymous Crashes</summary>
public int UniqueCrashesFiltered { get; set; }
/// <summary>Total Affected Users</summary>
public int AffectedUsersFiltered { get; set; }
/// <summary>Total crashes.</summary>
public int TotalCrashes { get; set; }
/// <summary>Total crashes year to date.</summary>
public int TotalCrashesYearToDate { get; set; }
/// <summary>Total crashes.</summary>
public int CrashesFilteredWithDate { 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>Public directory where the CSV files are saved.</summary>
public string GetCSVPublicDirectory()
{
return @"\\DEVWEB-02\CrashReporterCSV";
}
/// <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; }
}
}