-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNvItemInformation.cs
78 lines (58 loc) · 2.42 KB
/
NvItemInformation.cs
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Decompiled with JetBrains decompiler
// Type: Microsoft.LsuPro.NvItemInformation
// Assembly: CommonClasses, Version=16.5.3001.0, Culture=neutral, PublicKeyToken=null
// MVID: 9C5F53C6-7909-4C9A-87E3-489AF522B35E
// Assembly location: C:\ProgramData\Microsoft\Lumia Software Updater Pro\Bin\CommonClasses.dll
using System.Collections.Generic;
namespace Microsoft.LsuPro
{
public class NvItemInformation
{
private List<NvItemMember> members;
public NvItemInformation()
{
this.Identifier = string.Empty;
this.Name = string.Empty;
this.members = new List<NvItemMember>();
this.SubscriptionId = string.Empty;
}
public NvItemInformation(NvItemInformation other)
{
this.Identifier = other.Identifier;
this.Name = other.Name;
this.Description = other.Description;
this.RawData = other.RawData;
this.members = other.members;
}
public string Identifier { get; internal set; }
public string SubscriptionId { get; internal set; }
public ItemType NvItemType => !this.IsEfsItem ? ItemType.NV : ItemType.EFS;
public string Name { get; internal set; }
public string DisplayName { get; internal set; }
public string Description { get; internal set; }
public byte[] RawData { get; internal set; }
public bool IsEfsItem { get; internal set; }
public IDictionary<int, bool> BitmaskStates { get; internal set; }
public bool HasValueDescriptions { get; internal set; }
public IDictionary<int, string> ValueDescriptionValueNames { get; internal set; }
public IDictionary<int, string> ValueDescriptions { get; internal set; }
public override bool Equals(object obj)
{
if (obj == null || !(obj is NvItemInformation nvItemInformation) || this.Identifier != nvItemInformation.Identifier)
return false;
if (this.RawData == null && nvItemInformation.RawData == null)
return true;
if (this.RawData.Length != nvItemInformation.RawData.Length)
return false;
for (int index = 0; index < this.RawData.Length; ++index)
{
if (!this.RawData[index].Equals(nvItemInformation.RawData[index]))
return false;
}
return true;
}
public override int GetHashCode() => this.Identifier.GetHashCode();
public IList<NvItemMember> GetMembers() => (IList<NvItemMember>) this.members;
internal void AddMember(NvItemMember member) => this.members.Add(member);
}
}