From 1bf87937fccee16e56b933aeab32de6d928b5bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20C=C3=A9sar=20Dias?= Date: Mon, 24 Jul 2023 14:45:12 +0200 Subject: [PATCH] fix detekt --- .../wire/kalium/monkeys/importer/TestData.kt | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/importer/TestData.kt b/monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/importer/TestData.kt index 0bf391f4c14..53e2fa00b85 100644 --- a/monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/importer/TestData.kt +++ b/monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/importer/TestData.kt @@ -21,7 +21,6 @@ import com.wire.kalium.logic.data.conversation.ConversationOptions import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable - @Serializable data class TestDataJsonModel( @SerialName("testCases") val testCases: List, @@ -40,22 +39,17 @@ data class TestCase( sealed class UserCount { @Serializable @SerialName("PERCENTAGE") - data class PERCENTAGE(@SerialName("value") val value: UInt) : UserCount() + data class Percentage(@SerialName("value") val value: UInt) : UserCount() @Serializable @SerialName("FIXED_COUNT") - data class FIXED_COUNT(@SerialName("value") val value: UInt) : UserCount() -} - -@Serializable -enum class ConversationProtocol(val protocol: ConversationOptions.Protocol) { - MLS(ConversationOptions.Protocol.MLS), PROTEUS(ConversationOptions.Protocol.PROTEUS) + data class FixedCount(@SerialName("value") val value: UInt) : UserCount() } @Serializable data class GroupConfig( @SerialName("userCount") val userCount: UserCount, - @SerialName("protocol") val protocol: ConversationProtocol = ConversationProtocol.MLS, + @SerialName("protocol") val protocol: ConversationOptions.Protocol = ConversationOptions.Protocol.MLS, @SerialName("groupCount") val groupCount: UInt = 1u ) @@ -70,26 +64,26 @@ data class Action( @Serializable sealed class ActionType { @Serializable - data class LOGIN(@SerialName("duration") val duration: UInt = 0u) : ActionType() + data class Login(@SerialName("duration") val duration: UInt = 0u) : ActionType() @Serializable - data class RECONNECT(@SerialName("durationOffline") val durationOffline: UInt) : ActionType() + data class Reconnect(@SerialName("durationOffline") val durationOffline: UInt) : ActionType() @Serializable - data class SEND_MESSAGE(@SerialName("count") val count: UInt, @SerialName("targets") val targets: List = listOf()) : + data class SendMessage(@SerialName("count") val count: UInt, @SerialName("targets") val targets: List = listOf()) : ActionType() @Serializable - data class CREATE_CONVERSATION(@SerialName("userCount") val userCount: UserCount) : ActionType() + data class CreateConversation(@SerialName("userCount") val userCount: UserCount) : ActionType() @Serializable - data class LEAVE_CONVERSATION(@SerialName("userCount") val userCount: UserCount) : ActionType() + data class LeaveConversation(@SerialName("userCount") val userCount: UserCount) : ActionType() @Serializable - data class DESTROY_CONVERSATION(@SerialName("count") val count: UInt) : ActionType() + data class DestroyConversation(@SerialName("count") val count: UInt) : ActionType() @Serializable - data class SEND_REQUEST(@SerialName("userCount") val userCount: UInt) : ActionType() + data class SendRequest(@SerialName("userCount") val userCount: UInt) : ActionType() } @Serializable @@ -108,5 +102,6 @@ data class BackendDataJsonModel( @Serializable data class UserAccountDataJsonModel( - @SerialName("email") val email: String, @SerialName("id") val unqualifiedId: String + @SerialName("email") val email: String, + @SerialName("id") val unqualifiedId: String )