From 3b31c4db28b709888a06765149afa8b61e495d75 Mon Sep 17 00:00:00 2001 From: Maksym <79659877+1Rinkana@users.noreply.github.com> Date: Sun, 27 Aug 2023 22:59:02 +0200 Subject: [PATCH] feat: state parameter added in timer class (#42) Co-authored-by: tsyganiimaksym --- .../main/kotlin/io/timemates/api/grpc/mappers/TimersMapper.kt | 1 + sdk/src/commonMain/kotlin/io/timemates/sdk/timers/types/Timer.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/grpc-engine/src/main/kotlin/io/timemates/api/grpc/mappers/TimersMapper.kt b/grpc-engine/src/main/kotlin/io/timemates/api/grpc/mappers/TimersMapper.kt index af0e2b7..37b5659 100644 --- a/grpc-engine/src/main/kotlin/io/timemates/api/grpc/mappers/TimersMapper.kt +++ b/grpc-engine/src/main/kotlin/io/timemates/api/grpc/mappers/TimersMapper.kt @@ -27,6 +27,7 @@ internal class TimersMapper { description = TimerDescription.createOrThrow(description), ownerId = UserId.createOrThrow(ownerId), membersCount = Count.createOrThrow(membersCount), + state = grpcStateToSdkState(currentState), settings = grpcSettingsToSdkSettings(settings), ) } diff --git a/sdk/src/commonMain/kotlin/io/timemates/sdk/timers/types/Timer.kt b/sdk/src/commonMain/kotlin/io/timemates/sdk/timers/types/Timer.kt index bbc4e1b..059d859 100644 --- a/sdk/src/commonMain/kotlin/io/timemates/sdk/timers/types/Timer.kt +++ b/sdk/src/commonMain/kotlin/io/timemates/sdk/timers/types/Timer.kt @@ -14,6 +14,7 @@ public data class Timer ( val description: TimerDescription, val ownerId: UserId, val membersCount: Count, + val state: State, val settings: TimerSettings, ) : TimeMatesEntity() { /**