Skip to content

Commit

Permalink
Addressing git comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TebaleloS committed Sep 20, 2024
1 parent 6c11ae8 commit 6d970a3
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

package za.co.absa.atum.server.model

import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}

sealed trait PaginatedResult[R] {
def data: Seq[R]
}
Expand All @@ -27,16 +24,6 @@ object PaginatedResult {

case class ResultHasMore[R](data: Seq[R]) extends PaginatedResult[R]

object ResultHasMore {
implicit def encoder[T: Encoder]: Encoder[ResultHasMore[T]] = deriveEncoder
implicit def decoder[T: Decoder]: Decoder[ResultHasMore[T]] = deriveDecoder
}

case class ResultNoMore[R](data: Seq[R]) extends PaginatedResult[R]

object ResultNoMore {
implicit def encoder[T: Encoder]: Encoder[ResultNoMore[T]] = deriveEncoder
implicit def decoder[T: Decoder]: Decoder[ResultNoMore[T]] = deriveDecoder
}

}

0 comments on commit 6d970a3

Please sign in to comment.