-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ i have no idea if i did
Events
correctly
- Loading branch information
Showing
18 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/main/kotlin/one/devos/osuv2kt/models/event/AchievementEvent.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,8 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
import com.google.gson.JsonElement | ||
|
||
public data class AchievementEvent( | ||
public val achievement: JsonElement, // type is supposed to be Achievement but what | ||
public val user: EventUser | ||
) |
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,8 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
public enum class Approval { | ||
RANKED, | ||
APPROVED, | ||
QUALIFIED, | ||
LOVED | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/one/devos/osuv2kt/models/event/BeatmapPlaycountEvent.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 one.devos.osuv2kt.models.event | ||
|
||
public data class BeatmapPlaycountEvent( | ||
public val beatmap: EventBeatmap, | ||
public val count: Int | ||
) |
7 changes: 7 additions & 0 deletions
7
src/main/kotlin/one/devos/osuv2kt/models/event/BeatmapsetApproveEvent.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,7 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
public data class BeatmapsetApproveEvent( | ||
public val approval: Approval, | ||
public val beatmapset: EventBeatmapset, | ||
public val user: EventUser | ||
) |
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/one/devos/osuv2kt/models/event/BeatmapsetDeleteEvent.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,5 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
public data class BeatmapsetDeleteEvent( | ||
public val beatmapset: EventBeatmapset | ||
) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/one/devos/osuv2kt/models/event/BeatmapsetReviveEvent.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 one.devos.osuv2kt.models.event | ||
|
||
public data class BeatmapsetReviveEvent( | ||
public val beatmapset: EventBeatmapset, | ||
public val user: EventUser | ||
) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/one/devos/osuv2kt/models/event/BeatmapsetUpdateEvent.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 one.devos.osuv2kt.models.event | ||
|
||
public data class BeatmapsetUpdateEvent( | ||
public val beatmapset: EventBeatmapset, | ||
public val user: EventUser | ||
) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/one/devos/osuv2kt/models/event/BeatmapsetUploadEvent.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 one.devos.osuv2kt.models.event | ||
|
||
public data class BeatmapsetUploadEvent( | ||
public val beatmapset: EventBeatmapset, | ||
public val user: EventUser | ||
) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/one/devos/osuv2kt/models/event/EventBeatmap.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 one.devos.osuv2kt.models.event | ||
|
||
public data class EventBeatmap( | ||
public val title: String, | ||
public val url: String | ||
) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/one/devos/osuv2kt/models/event/EventBeatmapset.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 one.devos.osuv2kt.models.event | ||
|
||
public data class EventBeatmapset( | ||
public val title: String, | ||
public val url: String | ||
) |
16 changes: 15 additions & 1 deletion
16
src/main/kotlin/one/devos/osuv2kt/models/event/EventType.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 |
---|---|---|
@@ -1,3 +1,17 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
public data class EventType() | ||
public data class EventType( | ||
public val achievement: AchievementEvent, | ||
public val beatmapPlayground: BeatmapPlaycountEvent, | ||
public val beatmapsetApprove: BeatmapsetApproveEvent, | ||
public val beatmapsetDelete: BeatmapsetDeleteEvent, | ||
public val beatmapsetRevive: BeatmapsetReviveEvent, | ||
public val beatmapsetUpdate: BeatmapsetUpdateEvent, | ||
public val beatmapsetUpload: BeatmapsetUploadEvent, | ||
public val rank: RankEvent, | ||
public val rankLost: RankLostEvent, | ||
public val userSupportAgain: UserSupportAgainEvent, | ||
public val userSupportFirst: UserSupportFirstEvent, | ||
public val userSupportGift: UserSupportGiftEvent, | ||
public val usernameChange: UsernameChangeEvent | ||
) |
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,9 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
public data class EventUser( | ||
public val username: String, | ||
public val url: String, | ||
|
||
// only for usernameChange event | ||
public val previousUsername: String? | ||
) |
11 changes: 11 additions & 0 deletions
11
src/main/kotlin/one/devos/osuv2kt/models/event/RankEvent.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,11 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
import one.devos.osuv2kt.models.Ruleset | ||
|
||
public data class RankEvent( | ||
public val scoreRank: String, | ||
public val rank: Int, | ||
public val mode: Ruleset, | ||
public val beatmapset: EventBeatmapset, | ||
public val user: EventUser | ||
) |
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/one/devos/osuv2kt/models/event/RankLostEvent.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,9 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
import one.devos.osuv2kt.models.Ruleset | ||
|
||
public data class RankLostEvent( | ||
public val mode: Ruleset, | ||
public val beatmap: EventBeatmap, | ||
public val user: EventUser, | ||
) |
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/one/devos/osuv2kt/models/event/UserSupportAgainEvent.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,5 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
public data class UserSupportAgainEvent( | ||
public val user: EventUser | ||
) |
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/one/devos/osuv2kt/models/event/UserSupportFirstEvent.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,5 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
public data class UserSupportFirstEvent( | ||
public val user: EventUser | ||
) |
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/one/devos/osuv2kt/models/event/UserSupportGiftEvent.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,5 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
public data class UserSupportGiftEvent( | ||
public val user: EventUser | ||
) |
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/one/devos/osuv2kt/models/event/UsernameChangeEvent.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,5 @@ | ||
package one.devos.osuv2kt.models.event | ||
|
||
public data class UsernameChangeEvent( | ||
public val user: EventUser | ||
) |