-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up Bygning data class and remove unused code (#44)
* remove currently unused bygningService and use new Bygning model where applicable instead of old with added egenregistreringer * remove bygningdto and repo as this is unused and probably wrong
- Loading branch information
1 parent
7c59327
commit c82b512
Showing
14 changed files
with
38 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
src/main/kotlin/no/kartverket/matrikkel/bygning/matrikkel/Bygning.kt
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
src/main/kotlin/no/kartverket/matrikkel/bygning/matrikkel/BygningClient.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/kotlin/no/kartverket/matrikkel/bygning/matrikkel/adapters/LocalBygningClient.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/kotlin/no/kartverket/matrikkel/bygning/matrikkel/adapters/MatrikkelBygningClient.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 1 addition & 25 deletions
26
src/main/kotlin/no/kartverket/matrikkel/bygning/models/Bygning.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,16 @@ | ||
package no.kartverket.matrikkel.bygning.models | ||
|
||
import kotlinx.serialization.Serializable | ||
import no.kartverket.matrikkel.bygning.models.requests.* | ||
|
||
@Serializable | ||
data class Bygning( | ||
val bygningId: Long, | ||
val bygningNummer: Long, | ||
val bruksenheter: List<Bruksenhet>, | ||
val bruksarealRegistreringer: List<BruksarealRegistrering>, | ||
val byggeaarRegistreringer: List<ByggeaarRegistrering>, | ||
val vannforsyningsRegistreringer: List<VannforsyningsRegistrering>, | ||
val avlopRegistreringer: List<AvlopRegistrering>, | ||
) | ||
|
||
@Serializable | ||
data class Bruksenhet( | ||
val bruksenhetId: Long, | ||
val bygningId: Long, | ||
val bruksarealRegistreringer: List<BruksarealRegistrering>, | ||
val energikildeRegistreringer: List<EnergikildeRegistrering>, | ||
val oppvarmingRegistreringer: List<OppvarmingRegistrering> | ||
) | ||
|
||
// Disse er dummy klasser som brukes runtime mens vi ikke har en databasetilkobling | ||
data class BygningStorage( | ||
val bygningId: Long, | ||
val bruksarealRegistreringer: MutableList<BruksarealRegistrering>, | ||
val byggeaarRegistreringer: MutableList<ByggeaarRegistrering>, | ||
val vannforsyningsRegistreringer: MutableList<VannforsyningsRegistrering>, | ||
val avlopRegistreringer: MutableList<AvlopRegistrering>, | ||
) | ||
|
||
data class BruksenhetStorage( | ||
val bruksenhetId: Long, | ||
val bygningId: Long, | ||
val bruksarealRegistreringer: MutableList<BruksarealRegistrering>, | ||
val energikildeRegistreringer: MutableList<EnergikildeRegistrering>, | ||
val oppvarmingRegistreringer: MutableList<OppvarmingRegistrering> | ||
) |
19 changes: 0 additions & 19 deletions
19
src/main/kotlin/no/kartverket/matrikkel/bygning/models/BygningDTO.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
src/main/kotlin/no/kartverket/matrikkel/bygning/repositories/BygningRepository.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
src/main/kotlin/no/kartverket/matrikkel/bygning/services/BygningService.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.