Skip to content

Commit

Permalink
隐藏无用对象,方便创建 Python 绑定
Browse files Browse the repository at this point in the history
  • Loading branch information
xfqwdsj committed May 2, 2024
1 parent 37143c7 commit 367759c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion py-common/src/commonMain/kotlin/Message.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ sealed class Message {
result = 31 * result + content.contentHashCode()
return result
}

internal companion object
}

@Serializable
Expand Down Expand Up @@ -72,11 +74,19 @@ sealed class Message {

@Serializable
data object Cancelled : Result()

internal companion object
}

internal companion object
}

@Serializable
enum class FrameFormat { Rgb }
enum class FrameFormat {
Rgb;

internal companion object
}

@Serializable
sealed class Ping : Message() {
Expand All @@ -85,5 +95,9 @@ sealed class Message {

@Serializable
data object Response : Ping()

internal companion object
}

internal companion object
}

0 comments on commit 367759c

Please sign in to comment.