Skip to content

Commit

Permalink
Merge pull request #77 from andacata/feat/#76-open-service-classes
Browse files Browse the repository at this point in the history
feat(ocpi-2.2.1) open service classes
  • Loading branch information
lilgallon authored Jan 23, 2024
2 parents 62452c1 + 7fa9583 commit 4642efb
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import com.izivia.ocpi.toolkit.transport.TransportClientBuilder
* @property transportClientBuilder used to build a transport (will be used to create CredentialClient to make calls)
* @property requiredEndpoints the endpoints this client expects from the other part to provide
*/
class CredentialsClientService(
open class CredentialsClientService(
private val clientVersionsEndpointUrl: String,
private val clientPartnerRepository: PartnerRepository,
private val clientVersionsRepository: VersionsRepository,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.izivia.ocpi.toolkit.transport.domain.HttpMethod
import com.izivia.ocpi.toolkit.transport.domain.HttpRequest
import com.izivia.ocpi.toolkit.transport.domain.HttpStatus

class CredentialsServerService(
open class CredentialsServerService(
private val partnerRepository: PartnerRepository,
private val credentialsRoleRepository: CredentialsRoleRepository,
private val transportClientBuilder: TransportClientBuilder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.izivia.ocpi.toolkit.modules.locations.domain.Location
import com.izivia.ocpi.toolkit.modules.locations.repositories.LocationsCpoRepository
import java.time.Instant

class LocationsCpoService(
open class LocationsCpoService(
private val service: LocationsCpoRepository
) : LocationsCpoInterface {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.izivia.ocpi.toolkit.modules.locations.LocationsEmspInterface
import com.izivia.ocpi.toolkit.modules.locations.domain.*
import com.izivia.ocpi.toolkit.modules.locations.repositories.LocationsEmspRepository

class LocationsEmspService(
open class LocationsEmspService(
private val service: LocationsEmspRepository
) : LocationsEmspInterface {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.izivia.ocpi.toolkit.modules.sessions.domain.Session
import com.izivia.ocpi.toolkit.modules.sessions.repositories.SessionsCpoRepository
import java.time.Instant

class SessionsCpoService(
open class SessionsCpoService(
private val service: SessionsCpoRepository
) : SessionsCpoInterface {
override suspend fun getSessions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.izivia.ocpi.toolkit.modules.sessions.domain.Session
import com.izivia.ocpi.toolkit.modules.sessions.domain.SessionPartial
import com.izivia.ocpi.toolkit.modules.sessions.repositories.SessionsEmspRepository

class SessionsEmspService(
open class SessionsEmspService(
private val service: SessionsEmspRepository
) : SessionsEmspInterface {
override suspend fun getSession(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import com.izivia.ocpi.toolkit.modules.tokens.domain.TokenPartial
import com.izivia.ocpi.toolkit.modules.tokens.domain.TokenType
import com.izivia.ocpi.toolkit.modules.tokens.repositories.TokensCpoRepository

class TokensCpoService(
open class TokensCpoService(
private val service: TokensCpoRepository
) : TokensCpoInterface {
override suspend fun getToken(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.izivia.ocpi.toolkit.modules.tokens.domain.TokenType
import com.izivia.ocpi.toolkit.modules.tokens.repositories.TokensEmspRepository
import java.time.Instant

class TokensEmspService(
open class TokensEmspService(
private val service: TokensEmspRepository
) : TokensEmspInterface {
override suspend fun getTokens(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.izivia.ocpi.toolkit.modules.versions.domain.VersionDetails
import com.izivia.ocpi.toolkit.modules.versions.domain.parseVersionNumber
import com.izivia.ocpi.toolkit.modules.versions.repositories.VersionsRepository

class VersionsService(
open class VersionsService(
private val repository: VersionsRepository,
private val baseUrlProvider: suspend () -> String,
val versionsBasePath: String = "/versions",
Expand Down

0 comments on commit 4642efb

Please sign in to comment.