-
Notifications
You must be signed in to change notification settings - Fork 0
/
Job.cs
52 lines (45 loc) · 1.29 KB
/
Job.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
using Newtonsoft.Json;
namespace Job_Application_Database.Classes
{
/// <summary>
/// Job Implimentation of BaseInfo
/// </summary>
public class Job : BaseInfo
{
/// <summary>
/// Static ID For Tracking All Jobs
/// </summary>
public static int Job_ID = 0;
/// <summary>
/// Title Of Job
/// </summary>
[JsonProperty("Title")]
public override string Name { get; set; }
/// <summary>
/// Salary Of Job
/// </summary>
[JsonProperty("Salary")]
public override string Extra { get; set; }
/// <summary>
/// Default Constructor
/// </summary>
public Job() : this(" ") { }
/// <summary>
/// String Constructor
/// </summary>
/// <param name="title">The Name Of The Job</param>
public Job(string title) : this(title, "0") { }
/// <summary>
/// String, String Constructor
/// </summary>
/// <param name="title">The Name Of The Job</param>
/// <param name="salery">The Salary Of The Job</param>
[JsonConstructor]
public Job(string title, string salery)
{
Name = title;
Extra = salery;
ID = Job_ID++;
}
}
}