88
99namespace ResumeSharpLib
1010{
11- using System ;
1211 using System . Collections . Generic ;
1312
14- using System . Globalization ;
1513 using Newtonsoft . Json ;
16- using Newtonsoft . Json . Converters ;
1714 using NodaTime ;
1815 using NodaTime . Serialization . JsonNet ;
1916
@@ -59,244 +56,6 @@ public partial class JsonResume
5956 public List < Project > Projects { get ; set ; }
6057 }
6158
62- public partial class Basics
63- {
64- [ JsonProperty ( "name" ) ]
65- public string Name { get ; set ; }
66-
67- [ JsonProperty ( "label" ) ]
68- public string Label { get ; set ; }
69-
70- [ JsonProperty ( "picture" ) ]
71- public string Picture { get ; set ; }
72-
73- [ JsonProperty ( "email" ) ]
74- public string Email { get ; set ; }
75-
76- [ JsonProperty ( "phone" ) ]
77- public string Phone { get ; set ; }
78-
79- [ JsonProperty ( "website" ) ]
80- public string Website { get ; set ; }
81-
82- [ JsonProperty ( "summary" ) ]
83- public string Summary { get ; set ; }
84-
85- [ JsonProperty ( "location" ) ]
86- public Location Location { get ; set ; }
87-
88- [ JsonProperty ( "profiles" ) ]
89- public List < Profile > Profiles { get ; set ; }
90- }
91-
92- public partial class Location
93- {
94- [ JsonProperty ( "address" ) ]
95- public string Address { get ; set ; }
96-
97- [ JsonProperty ( "postalCode" ) ]
98- public string PostalCode { get ; set ; }
99-
100- [ JsonProperty ( "city" ) ]
101- public string City { get ; set ; }
102-
103- [ JsonProperty ( "countryCode" ) ]
104- public string CountryCode { get ; set ; }
105-
106- [ JsonProperty ( "region" ) ]
107- public string Region { get ; set ; }
108- }
109-
110- public partial class Profile
111- {
112- [ JsonProperty ( "network" ) ]
113- public string Network { get ; set ; }
114-
115- [ JsonProperty ( "username" ) ]
116- public string Username { get ; set ; }
117-
118- [ JsonProperty ( "url" ) ]
119- public string Url { get ; set ; }
120- }
121-
122- public partial class Work
123- {
124- [ JsonProperty ( "organization" , NullValueHandling = NullValueHandling . Ignore ) ]
125- public string Organization { get ; set ; }
126-
127- [ JsonProperty ( "position" ) ]
128- public string Position { get ; set ; }
129-
130- [ JsonProperty ( "website" ) ]
131- public string Website { get ; set ; }
132-
133- [ JsonProperty ( "startDate" ) ]
134- public OffsetDateTime StartDate { get ; set ; }
135-
136- [ JsonProperty ( "endDate" ) ]
137- public OffsetDateTime EndDate { get ; set ; }
138-
139- [ JsonProperty ( "summary" ) ]
140- public string Summary { get ; set ; }
141-
142- [ JsonProperty ( "highlights" ) ]
143- public List < string > Highlights { get ; set ; }
144-
145- [ JsonProperty ( "company" , NullValueHandling = NullValueHandling . Ignore ) ]
146- public string Company { get ; set ; }
147- }
148-
149- public partial class Volunteer
150- {
151- [ JsonProperty ( "organization" , NullValueHandling = NullValueHandling . Ignore ) ]
152- public string Organization { get ; set ; }
153-
154- [ JsonProperty ( "position" ) ]
155- public string Position { get ; set ; }
156-
157- [ JsonProperty ( "website" ) ]
158- public string Website { get ; set ; }
159-
160- [ JsonProperty ( "startDate" ) ]
161- public OffsetDateTime StartDate { get ; set ; }
162-
163- [ JsonProperty ( "endDate" ) ]
164- public OffsetDateTime EndDate { get ; set ; }
165-
166- [ JsonProperty ( "summary" ) ]
167- public string Summary { get ; set ; }
168-
169- [ JsonProperty ( "highlights" ) ]
170- public List < string > Highlights { get ; set ; }
171-
172- [ JsonProperty ( "company" , NullValueHandling = NullValueHandling . Ignore ) ]
173- public string Company { get ; set ; }
174- }
175-
176- public partial class Education
177- {
178- [ JsonProperty ( "institution" ) ]
179- public string Institution { get ; set ; }
180-
181- [ JsonProperty ( "area" ) ]
182- public string Area { get ; set ; }
183-
184- [ JsonProperty ( "studyType" ) ]
185- public string StudyType { get ; set ; }
186-
187- [ JsonProperty ( "startDate" ) ]
188- public OffsetDateTime StartDate { get ; set ; }
189-
190- [ JsonProperty ( "endDate" ) ]
191- public OffsetDateTime EndDate { get ; set ; }
192-
193- [ JsonProperty ( "gpa" ) ]
194- public string Gpa { get ; set ; }
195-
196- [ JsonProperty ( "courses" ) ]
197- public List < string > Courses { get ; set ; }
198- }
199-
200- public partial class Award
201- {
202- [ JsonProperty ( "title" ) ]
203- public string Title { get ; set ; }
204-
205- [ JsonProperty ( "date" ) ]
206- public OffsetDateTime Date { get ; set ; }
207-
208- [ JsonProperty ( "awarder" ) ]
209- public string Awarder { get ; set ; }
210-
211- [ JsonProperty ( "summary" ) ]
212- public string Summary { get ; set ; }
213- }
214-
215- public partial class Certificate
216- {
217- [ JsonProperty ( "name" ) ]
218- public string Name { get ; set ; }
219- [ JsonProperty ( "date" ) ]
220- public OffsetDateTime Date { get ; set ; }
221- [ JsonProperty ( "issuer" ) ]
222- public string Issuer { get ; set ; }
223- [ JsonProperty ( "url" ) ]
224- public string Url { get ; set ; }
225- }
226-
227- public partial class Publication
228- {
229- [ JsonProperty ( "name" ) ]
230- public string Name { get ; set ; }
231-
232- [ JsonProperty ( "publisher" ) ]
233- public string Publisher { get ; set ; }
234-
235- [ JsonProperty ( "releaseDate" ) ]
236- public OffsetDateTime ReleaseDate { get ; set ; }
237-
238- [ JsonProperty ( "website" ) ]
239- public string Website { get ; set ; }
240-
241- [ JsonProperty ( "summary" ) ]
242- public string Summary { get ; set ; }
243- }
244-
245- public partial class Skill
246- {
247- [ JsonProperty ( "name" ) ]
248- public string Name { get ; set ; }
249-
250- [ JsonProperty ( "level" ) ]
251- public string Level { get ; set ; }
252-
253- [ JsonProperty ( "keywords" ) ]
254- public List < string > Keywords { get ; set ; }
255- }
256-
257- public partial class Language
258- {
259- [ JsonProperty ( "language" ) ]
260- public string LanguageLanguage { get ; set ; }
261-
262- [ JsonProperty ( "fluency" ) ]
263- public string Fluency { get ; set ; }
264- }
265-
266- public partial class Interest
267- {
268- [ JsonProperty ( "name" ) ]
269- public string Name { get ; set ; }
270-
271- [ JsonProperty ( "keywords" ) ]
272- public List < string > Keywords { get ; set ; }
273- }
274-
275- public partial class Reference
276- {
277- [ JsonProperty ( "name" ) ]
278- public string Name { get ; set ; }
279-
280- [ JsonProperty ( "reference" ) ]
281- public string ReferenceReference { get ; set ; }
282- }
283-
284- public partial class Project
285- {
286- [ JsonProperty ( "name" ) ]
287- public string Name { get ; set ; }
288- [ JsonProperty ( "description" ) ]
289- public string Description { get ; set ; }
290- [ JsonProperty ( "highlights" ) ]
291- public List < string > Highlights { get ; set ; }
292- [ JsonProperty ( "startDate" ) ]
293- public OffsetDateTime StartDate { get ; set ; }
294- [ JsonProperty ( "endDate" ) ]
295- public OffsetDateTime EndDate { get ; set ; }
296- [ JsonProperty ( "url" ) ]
297- public string Url { get ; set ; }
298- }
299-
30059 public partial class JsonResume
30160 {
30261 /// <summary>
@@ -306,23 +65,4 @@ public partial class JsonResume
30665 /// <returns></returns>
30766 public static JsonResume FromJson ( string json ) => JsonConvert . DeserializeObject < JsonResume > ( json , Converter . Settings ) ;
30867 }
309-
310- public static class Serialize
311- {
312- /// <summary>
313- /// Convert the JsonResume object to json
314- /// </summary>
315- /// <param name="self"></param>
316- /// <returns></returns>
317- public static string ToJson ( this JsonResume self ) => JsonConvert . SerializeObject ( self , Converter . Settings ) ;
318- }
319-
320- internal static class Converter
321- {
322- public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
323- {
324- MetadataPropertyHandling = MetadataPropertyHandling . Ignore ,
325- DateParseHandling = DateParseHandling . None
326- } . ConfigureForNodaTime ( NodaTime . DateTimeZoneProviders . Tzdb ) ;
327- }
32868}
0 commit comments