-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDisk.cs
27 lines (25 loc) · 788 Bytes
/
Disk.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
namespace powerLabel
{
public class Disk
{
public int id { get; set; }
public string model { get; set; }
public ulong size { get; set; }
public string mediaType { get; set; }
public string serialNumber { get; set; }
public override bool Equals(object obj)
{
if (obj == null || GetType() != obj.GetType()) return false;
Disk disk = (Disk)obj;
if (this.model.Trim() == disk.model.Trim() &&
this.size == disk.size &&
this.mediaType.Trim() == disk.mediaType.Trim() &&
this.serialNumber.Trim() == disk.serialNumber.Trim()
)
{
return true;
}
return false;
}
}
}