Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Jan 3, 2025
1 parent 88b0dec commit 317ed3b
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright (C) 2024 OpenAni and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license, which can be found at the following link.
*
* https://github.com/open-ani/ani/blob/main/LICENSE
*/

package me.him188.ani.app.domain.danmaku

import androidx.compose.runtime.Immutable
import me.him188.ani.danmaku.api.DanmakuMatchInfo

@Immutable
sealed class DanmakuLoadingState {
@Immutable
data object Idle : DanmakuLoadingState()

@Immutable
data object Loading : DanmakuLoadingState()

@Immutable
data class Success(
val matchInfos: List<DanmakuMatchInfo>
) : DanmakuLoadingState()

@Immutable
data class Failed(
val cause: Throwable,
) : DanmakuLoadingState()
}

0 comments on commit 317ed3b

Please sign in to comment.