-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminModels.cs
More file actions
49 lines (43 loc) · 1.47 KB
/
Copy pathAdminModels.cs
File metadata and controls
49 lines (43 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
namespace MyWebApp.Models
{
public class AdminDashboardViewModel
{
public int TotalDownloads { get; set; }
public int FailedDownloads { get; set; }
public int DownloadsLast24h { get; set; }
public double AverageQueryTimeMs { get; set; }
public IList<CountryCount> TopCountries { get; set; } = new List<CountryCount>();
public SystemInfoViewModel SystemInfo { get; set; } = new SystemInfoViewModel();
}
public class DownloadStatsViewModel
{
public IList<Download> Downloads { get; set; } = new List<Download>();
public int Page { get; set; }
public int TotalPages { get; set; }
public string? Search { get; set; }
public string? Status { get; set; }
}
public class SystemInfoViewModel
{
public TimeSpan Uptime { get; set; }
public string DotNetVersion { get; set; } = string.Empty;
public DateTime Started { get; set; }
}
public class CountryCount
{
public string Country { get; set; } = string.Empty;
public int Count { get; set; }
}
public class FileStatsViewModel
{
public DownloadFile File { get; set; } = new DownloadFile();
public int DownloadCount { get; set; }
}
public class RoleEditViewModel
{
public Role Role { get; set; } = new Role();
public IList<int> SelectedPermissions { get; set; } = new List<int>();
}
}