-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to event-driven approach
- Loading branch information
Showing
16 changed files
with
433 additions
and
221 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
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
6 changes: 6 additions & 0 deletions
6
src/commonMain/kotlin/io/github/vyfor/kpresence/event/ActivityUpdateEvent.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,6 @@ | ||
package io.github.vyfor.kpresence.event | ||
|
||
/** | ||
* Event representing an activity update. | ||
*/ | ||
data object ActivityUpdateEvent : Event |
6 changes: 6 additions & 0 deletions
6
src/commonMain/kotlin/io/github/vyfor/kpresence/event/DisconnectEvent.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,6 @@ | ||
package io.github.vyfor.kpresence.event | ||
|
||
/** | ||
* Event representing a disconnection event. | ||
*/ | ||
data object DisconnectEvent : Event |
3 changes: 3 additions & 0 deletions
3
src/commonMain/kotlin/io/github/vyfor/kpresence/event/Event.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,3 @@ | ||
package io.github.vyfor.kpresence.event | ||
|
||
interface Event |
6 changes: 6 additions & 0 deletions
6
src/commonMain/kotlin/io/github/vyfor/kpresence/event/ReadyEvent.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,6 @@ | ||
package io.github.vyfor.kpresence.event | ||
|
||
/** | ||
* Event indicating that the client is initialized. | ||
*/ | ||
data object ReadyEvent : Event |
Oops, something went wrong.