From 71265a1e8e08756ffcb7c14e2337e6303f112c2b Mon Sep 17 00:00:00 2001 From: Oleksii Kysil Date: Wed, 7 Feb 2024 14:23:52 +0200 Subject: [PATCH] Improve data types for Meldlingtype Use sets instead of lists for the meldling types. Should be more suitable for searches and omitting the duplicates. --- .../Meldingstyper/FiksArkivMeldingtype.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/KS.Fiks.Arkiv.Models.V1/Meldingstyper/FiksArkivMeldingtype.cs b/KS.Fiks.Arkiv.Models.V1/Meldingstyper/FiksArkivMeldingtype.cs index 6d32851..03c2186 100644 --- a/KS.Fiks.Arkiv.Models.V1/Meldingstyper/FiksArkivMeldingtype.cs +++ b/KS.Fiks.Arkiv.Models.V1/Meldingstyper/FiksArkivMeldingtype.cs @@ -42,7 +42,7 @@ public static class FiksArkivMeldingtype public const string Ikkefunnet = "no.ks.fiks.arkiv.v1.feilmelding.ikkefunnet"; - public static readonly List ArkiveringTyper = new List() + public static readonly ISet ArkiveringTyper = new HashSet { ArkivmeldingOpprett, ArkivmeldingOpprettMottatt, @@ -61,14 +61,14 @@ public static class FiksArkivMeldingtype AvskrivningSlettKvittering }; - public static readonly List FeilmeldingTyper = new List() + public static readonly ISet FeilmeldingTyper = new HashSet { Ugyldigforespørsel, Serverfeil, Ikkefunnet }; - public static readonly List InnsynTyper = new List() + public static readonly ISet InnsynTyper = new HashSet { Sok, SokResultatUtvidet,