Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8 | jlesech | 1 | using System; |
2 | |||
3 | namespace Race |
||
4 | { |
||
5 | public class Participant |
||
6 | { |
||
7 | #region Fields |
||
8 | |||
9 | private string firstName = string.Empty; |
||
10 | private string lastName = string.Empty; |
||
11 | private UInt16 yearOfBirth = 0; |
||
12 | private string email = null; |
||
13 | |||
14 | #endregion |
||
15 | |||
16 | #region Constructors |
||
17 | |||
18 | /// <summary> |
||
19 | /// Initializes a new instance of the <see cref="Race.Participant"/> class. |
||
20 | /// </summary> |
||
21 | /// <param name='firstName'> |
||
22 | /// First name. |
||
23 | /// </param> |
||
24 | /// <param name='lastName'> |
||
25 | /// Last name. |
||
26 | /// </param> |
||
27 | /// <param name='yearOfBirth'> |
||
28 | /// Year of birth. |
||
29 | /// </param> |
||
30 | public Participant (string firstName, string lastName, UInt16 yearOfBirth) |
||
31 | { |
||
32 | this.firstName = firstName; |
||
33 | this.lastName = lastName; |
||
34 | this.yearOfBirth = yearOfBirth; |
||
35 | } |
||
36 | |||
37 | /// <summary> |
||
38 | /// Initializes a new instance of the <see cref="Race.Participant"/> class. |
||
39 | /// </summary> |
||
40 | /// <param name='firstName'> |
||
41 | /// First name. |
||
42 | /// </param> |
||
43 | /// <param name='lastName'> |
||
44 | /// Last name. |
||
45 | /// </param> |
||
46 | /// <param name='yearOfBirth'> |
||
47 | /// Year of birth. |
||
48 | /// </param> |
||
49 | /// <param name='email'> |
||
50 | /// Email. |
||
51 | /// </param> |
||
52 | public Participant(string firstName, string lastName, UInt16 yearOfBirth, string email) |
||
53 | { |
||
54 | this.firstName = firstName; |
||
55 | this.lastName = lastName; |
||
56 | this.yearOfBirth = yearOfBirth; |
||
57 | this.email = email; |
||
58 | } |
||
59 | |||
60 | #endregion |
||
61 | |||
62 | #region Properties |
||
63 | |||
64 | /// <summary> |
||
65 | /// Gets or sets the first name. |
||
66 | /// </summary> |
||
67 | /// <value> |
||
68 | /// The first name. |
||
69 | /// </value> |
||
70 | public string FirstName |
||
71 | { |
||
72 | get { return this.firstName; } |
||
73 | set { this.firstName = value; } |
||
74 | } |
||
75 | |||
76 | /// <summary> |
||
77 | /// Gets or sets the last name. |
||
78 | /// </summary> |
||
79 | /// <value> |
||
80 | /// The last name. |
||
81 | /// </value> |
||
82 | public string LastName |
||
83 | { |
||
84 | get { return this.lastName; } |
||
85 | set { this.lastName = value; } |
||
86 | } |
||
87 | |||
88 | /// <summary> |
||
89 | /// Gets or sets the year of birth. |
||
90 | /// </summary> |
||
91 | /// <value> |
||
92 | /// The year of birth. |
||
93 | /// </value> |
||
94 | public UInt16 YearOfBirth |
||
95 | { |
||
96 | get { return this.yearOfBirth; } |
||
97 | set { this.yearOfBirth = value; } |
||
98 | } |
||
99 | |||
100 | /// <summary> |
||
101 | /// Gets or sets the email. |
||
102 | /// </summary> |
||
103 | /// <value> |
||
104 | /// The email. |
||
105 | /// </value> |
||
106 | public string Email |
||
107 | { |
||
108 | get { return this.email; } |
||
109 | set { this.email = value; } |
||
110 | } |
||
111 | |||
112 | #endregion |
||
113 | } |
||
114 | } |
||
115 |