-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathResumeQualityAssessment.cs
76 lines (64 loc) · 2.58 KB
/
ResumeQualityAssessment.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Copyright © 2023 Textkernel BV. All rights reserved.
// This file is provided for use by, or on behalf of, Textkernel licensees
// within the terms of their license of Textkernel products or Textkernel customers
// within the Terms of Service pertaining to the Textkernel SaaS products.
using System.Collections.Generic;
namespace Textkernel.Tx.Models.Resume.Metadata
{
/// <summary>
/// The level/severity of a <see cref="ResumeQualityAssessment"/>
/// </summary>
public class ResumeQualityLevel
{
/// <summary>
/// Only minor issues were found
/// </summary>
public static ResumeQualityLevel SuggestedImprovement = "Suggested Improvements";
/// <summary>
/// Some data was missing that should be included in a resume
/// </summary>
public static ResumeQualityLevel DataMissing = "Data Missing";
/// <summary>
/// A major issue was found in the resume that will reduce the quality of parse results
/// </summary>
public static ResumeQualityLevel MajorIssue = "Major Issues Found";
/// <summary>
/// A fatal issue was found in the resume. Parse results may have severe inaccuracies
/// </summary>
public static ResumeQualityLevel FatalProblem = "Fatal Problems Found";
/// <summary>
/// The string value for this level/severity
/// </summary>
public string Value { get; protected set; }
private ResumeQualityLevel(string value)
{
Value = value;
}
/// <summary>
/// Converts a string to a <see cref="ResumeQualityLevel"/>
/// </summary>
/// <param name="value">the string value</param>
public static implicit operator ResumeQualityLevel(string value)
{
return new ResumeQualityLevel(value);
}
}
/// <summary>
/// A list of <see cref="ResumeQualityFinding"/> of the same level/severity
/// </summary>
public class ResumeQualityAssessment
{
/// <summary>
/// The level/severity of this assessment. One of:
/// <br/><see cref="ResumeQualityLevel.FatalProblem"/>
/// <br/><see cref="ResumeQualityLevel.MajorIssue"/>
/// <br/><see cref="ResumeQualityLevel.DataMissing"/>
/// <br/><see cref="ResumeQualityLevel.SuggestedImprovement"/>
/// </summary>
public string Level { get; set; }
/// <summary>
/// A list of findings of the same severity/level
/// </summary>
public List<ResumeQualityFinding> Findings { get; set; }
}
}