1
1
using System . Collections . Generic ;
2
+ using System . Text . Json . Serialization ;
2
3
using static CarWash . ClassLibrary . Enums . ServiceType ;
3
4
4
5
namespace CarWash . ClassLibrary . Enums
@@ -86,20 +87,129 @@ public static class ServiceTypes
86
87
/// </summary>
87
88
public static readonly List < Service > Types = new List < Service >
88
89
{
89
- new Service { Type = Exterior , TimeInMinutes = 12 , Price = 3213 , PriceMpv = 4017 , Hidden = false } ,
90
- new Service { Type = Interior , TimeInMinutes = 12 , Price = 1607 , PriceMpv = 2410 , Hidden = false } ,
91
- new Service { Type = Carpet , TimeInMinutes = 24 , Price = - 1 , PriceMpv = - 1 , Hidden = false } ,
92
- new Service { Type = SpotCleaning , TimeInMinutes = 0 , Price = 3534 , PriceMpv = 3534 , Hidden = false } ,
93
- new Service { Type = VignetteRemoval , TimeInMinutes = 0 , Price = 466 , PriceMpv = 466 , Hidden = false } ,
94
- new Service { Type = Polishing , TimeInMinutes = 0 , Price = 4498 , PriceMpv = 4498 , Hidden = false } ,
95
- new Service { Type = AcCleaningOzon , TimeInMinutes = 0 , Price = 8033 , PriceMpv = 8033 , Hidden = false } ,
96
- new Service { Type = AcCleaningBomba , TimeInMinutes = 0 , Price = 6426 , PriceMpv = 6426 , Hidden = false } ,
97
- new Service { Type = BugRemoval , TimeInMinutes = 0 , Price = 804 , PriceMpv = 804 , Hidden = true } ,
98
- new Service { Type = WheelCleaning , TimeInMinutes = 0 , Price = 964 , PriceMpv = 964 , Hidden = true } ,
99
- new Service { Type = TireCare , TimeInMinutes = 0 , Price = 804 , PriceMpv = 804 , Hidden = true } ,
100
- new Service { Type = LeatherCare , TimeInMinutes = 0 , Price = 8033 , PriceMpv = 8033 , Hidden = true } ,
101
- new Service { Type = PlasticCare , TimeInMinutes = 0 , Price = 7230 , PriceMpv = 7230 , Hidden = true } ,
102
- new Service { Type = PreWash , TimeInMinutes = 0 , Price = 804 , PriceMpv = 804 , Hidden = true }
90
+ new Service {
91
+ Type = Exterior ,
92
+ Name = "exterior" ,
93
+ TimeInMinutes = 12 ,
94
+ Price = 3712 ,
95
+ PriceMpv = 4641 ,
96
+ Hidden = false
97
+ } ,
98
+ new Service {
99
+ Type = Interior ,
100
+ Name = "interior" ,
101
+ TimeInMinutes = 12 ,
102
+ Price = 2124 ,
103
+ PriceMpv = 3180 ,
104
+ Hidden = false } ,
105
+ new Service {
106
+ Type = Carpet ,
107
+ Name = "carpet" ,
108
+ Description = "whole carpet cleaning, including all the seats" ,
109
+ TimeInMinutes = 24 ,
110
+ Price = - 1 ,
111
+ PriceMpv = - 1 ,
112
+ Hidden = false
113
+ } ,
114
+ new Service {
115
+ Type = SpotCleaning ,
116
+ Name = "spot cleaning" ,
117
+ Description = "partial cleaning of the carpet, only where it is needed (eg. when something is spilled in the car)" ,
118
+ TimeInMinutes = 0 ,
119
+ Price = 4474 ,
120
+ PriceMpv = 4474 ,
121
+ Hidden = false
122
+ } ,
123
+ new Service {
124
+ Type = VignetteRemoval ,
125
+ Name = "vignette removal" ,
126
+ Description = "eg. highway vignettes on the windscreen" ,
127
+ TimeInMinutes = 0 ,
128
+ Price = 593 ,
129
+ PriceMpv = 593 ,
130
+ Hidden = false
131
+ } ,
132
+ new Service {
133
+ Type = Polishing ,
134
+ Name = "polishing" ,
135
+ Description = "for small scratches" ,
136
+ TimeInMinutes = 0 ,
137
+ Price = 5693 ,
138
+ PriceMpv = 5693 ,
139
+ Hidden = false
140
+ } ,
141
+ new Service {
142
+ Type = AcCleaningOzon ,
143
+ Name = "AC cleaning 'ozon'" ,
144
+ Description = "disinfects molecules with ozone" ,
145
+ TimeInMinutes = 0 ,
146
+ Price = 10166 ,
147
+ PriceMpv = 10166 ,
148
+ Hidden = false
149
+ } ,
150
+ new Service {
151
+ Type = AcCleaningBomba ,
152
+ Name = "AC cleaning 'bomba'" ,
153
+ Description = "blowing chemical spray in the AC system" ,
154
+ TimeInMinutes = 0 ,
155
+ Price = 8131 ,
156
+ PriceMpv = 8131 ,
157
+ Hidden = false
158
+ } ,
159
+ new Service {
160
+ Type = BugRemoval ,
161
+ Name = "bug removal" ,
162
+ Description = "we'll add this if it's needed" ,
163
+ TimeInMinutes = 0 ,
164
+ Price = 1018 ,
165
+ PriceMpv = 1018 ,
166
+ Hidden = true
167
+ } ,
168
+ new Service {
169
+ Type = WheelCleaning ,
170
+ Name = "wheel cleaning" ,
171
+ Description = "we'll add this if it's needed" ,
172
+ TimeInMinutes = 0 ,
173
+ Price = 1219 ,
174
+ PriceMpv = 1219 ,
175
+ Hidden = true
176
+ } ,
177
+ new Service {
178
+ Type = TireCare ,
179
+ Name = "tire care" ,
180
+ Description = "we'll add this if it's needed" ,
181
+ TimeInMinutes = 0 ,
182
+ Price = 1018 ,
183
+ PriceMpv = 1018 ,
184
+ Hidden = true
185
+ } ,
186
+ new Service {
187
+ Type = LeatherCare ,
188
+ Name = "leather care" ,
189
+ Description = "we'll add this if it's needed" ,
190
+ TimeInMinutes = 0 ,
191
+ Price = 10166 ,
192
+ PriceMpv = 10166 ,
193
+ Hidden = true
194
+ } ,
195
+ new Service {
196
+ Type = PlasticCare ,
197
+ Name = "plastic care" ,
198
+ Description = "we'll add this if it's needed" ,
199
+ TimeInMinutes = 0 ,
200
+ Price = 9149 ,
201
+ PriceMpv = 9149 ,
202
+ Hidden = true
203
+ } ,
204
+ new Service {
205
+ Type = PreWash ,
206
+ Name = "prewash" ,
207
+ Description = "we'll add this if it's needed" ,
208
+ TimeInMinutes = 0 ,
209
+ Price = 1018 ,
210
+ PriceMpv = 1018 ,
211
+ Hidden = true
212
+ }
103
213
} ;
104
214
}
105
215
@@ -111,8 +221,19 @@ public class Service
111
221
/// <summary>
112
222
/// Gets or sets the type of the service.
113
223
/// </summary>
224
+ [ JsonPropertyName ( "id" ) ]
114
225
public ServiceType Type { get ; set ; }
115
226
227
+ /// <summary>
228
+ /// Gets or sets the name of the service.
229
+ /// </summary>
230
+ public string Name { get ; set ; }
231
+
232
+ /// <summary>
233
+ /// Gets or sets the description of the service.
234
+ /// </summary>
235
+ public string Description { get ; set ; }
236
+
116
237
/// <summary>
117
238
/// Gets or sets the time needed for this service.
118
239
/// </summary>
0 commit comments