diff options
| author | ivar <i@oiee.no> | 2024-03-19 01:02:22 +0100 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2024-03-19 01:02:22 +0100 |
| commit | 5f604b3052dab1d51dc130df2470bf330b283ec6 (patch) | |
| tree | ae00e1fe4542850467555b4e3af41964ba8d878b /code/api/Models/KnownProblem.cs | |
| parent | 63cf177e8cf22e349534664d59a6926f8b36863d (diff) | |
| download | storage-5f604b3052dab1d51dc130df2470bf330b283ec6.tar.xz storage-5f604b3052dab1d51dc130df2470bf330b283ec6.zip | |
Max lenghts on db schema
Use latest temporal from cdn
Implement majority of translation functionality
Major refinements/bugs
Diffstat (limited to 'code/api/Models/KnownProblem.cs')
| -rw-r--r-- | code/api/Models/KnownProblem.cs | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/code/api/Models/KnownProblem.cs b/code/api/Models/KnownProblem.cs index 007f79a..c92872f 100644 --- a/code/api/Models/KnownProblem.cs +++ b/code/api/Models/KnownProblem.cs @@ -1,17 +1,11 @@ -namespace I2R.Storage.Api.Models; +namespace Quality.Storage.Api.Models; -public class KnownProblemModel +public class KnownProblemModel(string title = default, string subtitle = default, Dictionary<string, string[]> errors = default) { - public KnownProblemModel(string title = default, string subtitle = default, Dictionary<string, string[]> errors = default) { - Title = title; - Subtitle = subtitle; - Errors = errors ?? new Dictionary<string, string[]>(); - } - - public string Title { get; set; } - public string Subtitle { get; set; } - public Dictionary<string, string[]> Errors { get; set; } - public string TraceId { get; set; } + public string Title { get; set; } = title; + public string Subtitle { get; set; } = subtitle; + public Dictionary<string, string[]> Errors { get; set; } = errors ?? new Dictionary<string, string[]>(); + public string TraceId { get; set; } public void AddError(string field, string errorText) { if (!Errors.ContainsKey(field)) { @@ -23,4 +17,4 @@ public class KnownProblemModel Errors.Add(field, newErrors.ToArray()); } } -}
\ No newline at end of file +} |
