-
Notifications
You must be signed in to change notification settings - Fork 0
/
CityViewModel.cs
60 lines (53 loc) · 1.44 KB
/
CityViewModel.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
using System;
namespace Test
{
public class CityViewModel : IEquatable<CityDto>
{
private string _country;
public string Country
{
get { return _country; }
set { _country = value; }
}
private string _voivodship;
public string Voivodship
{
get { return _voivodship; }
set { _voivodship = value; }
}
private DateTime _establisedIn;
public DateTime EstablishedIn
{
get { return _establisedIn; }
set { _establisedIn = value; }
}
private string _mayor;
public string Mayor
{
get { return _mayor; }
set { _mayor = value; }
}
private string _name;
public string Name
{
get { return _name; }
set { _name = value; }
}
private int _population;
public int Population
{
get { return _population; }
set { _population = value; }
}
public bool Equals(CityDto other)
{
return
this.Country == other.Country &&
this.EstablishedIn == other.EstablishedIn &&
this.Mayor == other.Mayor &&
this.Name == other.Name &&
this.Population == other.Population &&
this.Voivodship == other.Voivodship;
}
}
}