Skip to content

Commit

Permalink
use Consumer interface
Browse files Browse the repository at this point in the history
  • Loading branch information
hknots committed Jan 27, 2025
1 parent fa91bab commit 8091bf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package no.fintlabs.consumer.state.model

import no.fintlabs.consumer.state.interfaces.ConsumerFields
import no.fintlabs.consumer.state.interfaces.ConsumerIdentificator
import no.fintlabs.consumer.state.interfaces.Consumer

data class ConsumerRequest(
override val domain: String,
Expand All @@ -13,4 +12,4 @@ data class ConsumerRequest(
override val resources: List<String> = listOf(),
override val writeableResources: List<String> = listOf(),
override val cacheDisabledResources: List<String> = listOf(),
) : ConsumerIdentificator, ConsumerFields
) : Consumer
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
package no.fintlabs.consumer.state.model

import no.fintlabs.consumer.state.interfaces.Consumer

data class ConsumerResponse(
val consumerFields: ConsumerRequest,
val consumer: Consumer,
val operation: Operation
) {
companion object {
fun fromConsumerRequest(consumerRequest: ConsumerRequest, operation: Operation) = ConsumerResponse(
consumerRequest,
operation
)
}
}
)

0 comments on commit 8091bf5

Please sign in to comment.