Skip to content

Commit

Permalink
Hjelpemetode for å sjekke om meldingstype er innenfor protokollen (#23)
Browse files Browse the repository at this point in the history
* Hjelpemetode for å sjekke om meldingstype er innenfor protokollen

* Fiks

Co-authored-by: Jarle Børsheim <jarle.borsheim@sonat.no>
  • Loading branch information
jarleborsheim and jarleborsheim authored Jan 10, 2023
1 parent f68993c commit 1db3026
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions KS.Fiks.Arkiv.Models.V1/Meldingstyper/FiksArkivMeldingtype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,24 @@ public static class FiksArkivMeldingtype

};

public static bool IsArkiveringType(string meldingsType)
public static bool IsArkiveringType(string meldingstype)
{
return ArkiveringTyper.Contains(meldingsType);
return ArkiveringTyper.Contains(meldingstype);
}

public static bool IsInnsynType(string meldingsType)
public static bool IsInnsynType(string meldingstype)
{
return InnsynTyper.Contains(meldingsType);
return InnsynTyper.Contains(meldingstype);
}

public static bool IsFeilmelding(string meldingsType)
public static bool IsFeilmelding(string meldingstype)
{
return FeilmeldingTyper.Contains(meldingsType);
return FeilmeldingTyper.Contains(meldingstype);
}

public static bool IsGyldigProtokollType(string meldingstype)
{
return IsArkiveringType(meldingstype) || IsInnsynType(meldingstype) || IsFeilmelding(meldingstype);
}
}
}

0 comments on commit 1db3026

Please sign in to comment.