Skip to content

Instantly share code, notes, and snippets.

@mastoj
Created October 22, 2015 10:38
Show Gist options
  • Save mastoj/4076bdc5a4a624bb1ef1 to your computer and use it in GitHub Desktop.
Save mastoj/4076bdc5a4a624bb1ef1 to your computer and use it in GitHub Desktop.
public class SokEnhet : ISokEnhet<ElasticSearchKonsesjon>
{
public Guid Id { get; set; }
public EnhetNummer Enhetsnummer { get; set; }
[JsonProperty(TypeNameHandling = TypeNameHandling.Objects)]
public IEnhetNavn Navn { get; set; }
public string IndeksertNavn => Navn != null ? Navn.LagKortversjon() : "";
public EnhetType Enhetstype { get; set; }
public string KortAdresse { get; set; }
public List<ElasticSearchKonsesjon> Konsesjoner { get; set; } = new List<ElasticSearchKonsesjon>();
public EnhetStatus Status { get; set; }
public ElasticSearchKontaktinformasjon Kontaktinformasjon { get; set; }
public DataKilde SokeKilde => DataKilde.Finanstilsynet;
public ElasticSearchTypeOgVerdi[] Identifikatorer { get; set; }
public int FinanstilsynetId { get; set; }
public Organisasjonsform Organisasjonsform { get; set; }
public string FinanstilsynetIdWithPrefix => FinanstilsynetIdRegistrert.ToIdString(FinanstilsynetId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment