You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
74 lines
2.1 KiB
C#
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; }
|
|
}
|
|
} |