generated from y9vad9/kotlin-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat (#19): Get current user session
- Loading branch information
1 parent
5dbff90
commit 626a52a
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...c/main/proto/io/timemates/api/timers/sessions/requests/GetUserCurrentSessionRequest.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
syntax = "proto3"; | ||
|
||
import "io/timemates/api/timers/types/Timer.proto"; | ||
|
||
option java_package = "io.timemates.api.timers.sessions.requests"; | ||
|
||
message GetUserCurrentSessionRequest { | ||
message Response { | ||
optional Timer timer = 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...mmonMain/kotlin/io/timemates/sdk/timers/sessions/requests/GetUserCurrentSessionRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.timemates.sdk.timers.sessions.requests | ||
|
||
import io.timemates.sdk.authorization.types.value.AccessHash | ||
import io.timemates.sdk.common.types.TimeMatesRequest | ||
import io.timemates.sdk.timers.types.Timer | ||
|
||
/** | ||
* Gets current timer session. | ||
*/ | ||
public data class GetUserCurrentSessionRequest( | ||
val accessHash: AccessHash, | ||
) : TimeMatesRequest<Timer>() |