markus / ConvertService / ServiceBase / IServiceBase / ConvertItem.cs @ a7372e37
이력 | 보기 | 이력해설 | 다운로드 (3.81 KB)
1 | 53c9637d | taeseongkim | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Runtime.Serialization; |
||
5 | using System.Text; |
||
6 | using System.Threading.Tasks; |
||
7 | |||
8 | namespace Markus.Service.Interface |
||
9 | { |
||
10 | [DataContract] |
||
11 | b92f142f | taeseongkim | public class ConvertItem : IEquatable<ConvertItem> |
12 | 53c9637d | taeseongkim | { |
13 | b92f142f | taeseongkim | public bool Equals(ConvertItem other) |
14 | { |
||
15 | if (other is null) |
||
16 | return false; |
||
17 | |||
18 | return this.ConvertID == other.ConvertID && this.ProjectNumber == other.ProjectNumber; |
||
19 | } |
||
20 | |||
21 | public override bool Equals(object obj) => Equals(obj as ConvertItem); |
||
22 | public override int GetHashCode() |
||
23 | { |
||
24 | var id = (ConvertID != null) ? ConvertID : ""; |
||
25 | var project = (ProjectNumber != null) ? ProjectNumber : ""; |
||
26 | |||
27 | return (id + project).GetHashCode(); |
||
28 | } |
||
29 | |||
30 | 53c9637d | taeseongkim | public ConvertItem(string ProjectNo , string ID) |
31 | { |
||
32 | this._projectNumber = ProjectNo; |
||
33 | this._convertID = ID; |
||
34 | } |
||
35 | |||
36 | public ConvertItem(string key, string ProjectNo, string ID, string originfilePath) |
||
37 | { |
||
38 | this._uniqueKey = key; |
||
39 | this._projectNumber = ProjectNo; |
||
40 | this._convertID = ID; |
||
41 | this._originfilePath = originfilePath; |
||
42 | } |
||
43 | |||
44 | public ConvertItem(string key, string ProjectNo, string ID,string originfilePath,string convertPath) |
||
45 | { |
||
46 | this._uniqueKey = key; |
||
47 | this._projectNumber = ProjectNo; |
||
48 | this._convertID = ID; |
||
49 | this._originfilePath = originfilePath; |
||
50 | this._convertPath = convertPath; |
||
51 | } |
||
52 | |||
53 | public ConvertItem(string key, string ProjectNo, string ID, string originfilePath, string convertPath,string Status,int currentPageNo,int totalPage,string exception) |
||
54 | { |
||
55 | this._uniqueKey = key; |
||
56 | this._projectNumber = ProjectNo; |
||
57 | this._convertID = ID; |
||
58 | this._originfilePath = originfilePath; |
||
59 | this._convertPath = convertPath; |
||
60 | this._convertState = Status; |
||
61 | this._currentPageNo = currentPageNo; |
||
62 | this._totalPage = totalPage; |
||
63 | this._exception = exception; |
||
64 | } |
||
65 | |||
66 | |||
67 | string _uniqueKey; |
||
68 | string _projectNumber; |
||
69 | string _convertID; |
||
70 | 06f13e11 | taeseongkim | string _serviceID; |
71 | int _reConverter; |
||
72 | 53c9637d | taeseongkim | string _originfilePath; |
73 | string _convertPath; |
||
74 | string _convertState; |
||
75 | int _currentPageNo; |
||
76 | int _totalPage; |
||
77 | string _exception; |
||
78 | |||
79 | |||
80 | DateTime _createtime; |
||
81 | |||
82 | [DataMember] |
||
83 | public string ConvertID { get => _convertID; set => _convertID = value; } |
||
84 | |||
85 | [DataMember] |
||
86 | 06f13e11 | taeseongkim | public string ServiceID { get => _serviceID; set => _serviceID = value; } |
87 | |||
88 | [DataMember] |
||
89 | public int ReConverter { get => _reConverter; set => _reConverter = value; } |
||
90 | |||
91 | [DataMember] |
||
92 | 53c9637d | taeseongkim | public string OriginfilePath { get => _originfilePath; set => _originfilePath = value; } |
93 | |||
94 | [DataMember] |
||
95 | public string ConvertPath { get => _convertPath; set => _convertPath = value; } |
||
96 | |||
97 | [DataMember] |
||
98 | public string ConvertState { get => _convertState; set => _convertState = value; } |
||
99 | |||
100 | [DataMember] |
||
101 | public string ProjectNumber { get => _projectNumber; set => _projectNumber = value; } |
||
102 | |||
103 | [DataMember] |
||
104 | public int TotalPage { get => _totalPage; set => _totalPage = value; } |
||
105 | |||
106 | [DataMember] |
||
107 | public int CurrentPageNo { get => _currentPageNo; set => _currentPageNo = value; } |
||
108 | |||
109 | [DataMember] |
||
110 | public DateTime CreateTime { get => _createtime; set => _createtime = value; } |
||
111 | |||
112 | [DataMember] |
||
113 | public string UniqueKey { get => _uniqueKey; set => _uniqueKey = value; } |
||
114 | |||
115 | |||
116 | [DataMember] |
||
117 | public string Exception { get => _exception; set => _exception = value; } |
||
118 | |||
119 | [DataMember] |
||
120 | public Int64 ProcessorAffinity { get; set; } |
||
121 | b92f142f | taeseongkim | |
122 | 53c9637d | taeseongkim | } |
123 | } |