Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Dwairi committed Jan 19, 2025
1 parent 26b522a commit 6d9da48
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ import com.expediagroup.sdk.core.transport.Disposable
/**
* Abstract base class for building high-level asynchronous GraphQL clients.
*/
@Suppress("MemberVisibilityCanBePrivate")
abstract class AsyncGraphQLClient(
protected val asyncGraphQLExecutor: AsyncGraphQLExecutor
) : Disposable by asyncGraphQLExecutor
abstract class AsyncGraphQLClient : Disposable {
protected abstract val asyncGraphQLExecutor: AsyncGraphQLExecutor

override fun dispose() {
asyncGraphQLExecutor.dispose()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import com.expediagroup.sdk.core.transport.Disposable
/**
* Abstract base class for building high-level synchronous GraphQL clients.
*/
@Suppress("MemberVisibilityCanBePrivate")
abstract class GraphQLClient(
protected val graphQLExecutor: GraphQLExecutor
) : Disposable by graphQLExecutor
abstract class GraphQLClient : Disposable {
protected abstract val graphQLExecutor: GraphQLExecutor

override fun dispose() {
graphQLExecutor.dispose()
}
}

0 comments on commit 6d9da48

Please sign in to comment.