Repository navigation
Expand file tree
/
Copy pathModels.cs
More file actions
62 lines (55 loc) · 1.78 KB
/
Copy pathModels.cs
File metadata and controls
62 lines (55 loc) · 1.78 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
50
51
52
53
54
55
56
57
58
59
60
61
62
// Shared immutable-ish models used by scanning, display, and the Apply workflow.
using System;
using System.Collections.Generic;
namespace NotiWhacker
{
internal enum BrowserDataKind
{
Chromium,
Firefox
}
internal sealed class BrowserDefinition
{
public string Name { get; set; }
public string ProcessName { get; set; }
public BrowserDataKind Kind { get; set; }
public string RelativePath { get; set; }
public bool UsesRoamingProfile { get; set; }
public bool RootIsProfile { get; set; }
public int ProfileSearchDepth { get; set; } = 1;
}
internal sealed class BrowserProfile
{
public BrowserDefinition Browser { get; set; }
public string WindowsUser { get; set; }
public string UserProfilePath { get; set; }
public string ProfileName { get; set; }
public string ProfilePath { get; set; }
public string DataFilePath { get; set; }
}
internal sealed class NotificationPermission
{
public BrowserProfile Profile { get; set; }
public string Origin { get; set; }
public string RecordKey { get; set; }
public long FirefoxRowId { get; set; }
public bool Selected { get; set; }
public string Identity
{
get
{
return Profile.Browser.Name + "|" + Profile.DataFilePath + "|" + RecordKey + "|" + FirefoxRowId;
}
}
}
internal sealed class ScanMessage
{
public NotificationPermission Permission { get; set; }
public string Warning { get; set; }
}
internal sealed class ApplyResult
{
public int RemovedCount { get; set; }
public List<string> Warnings { get; } = new List<string>();
}
}