Skip to content

Commit

Permalink
fix detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocdias committed Jul 24, 2023
1 parent bb48edd commit 1bf8793
Showing 1 changed file with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<TestCase>,
Expand All @@ -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
)

Expand All @@ -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<String> = listOf()) :
data class SendMessage(@SerialName("count") val count: UInt, @SerialName("targets") val targets: List<String> = 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
Expand All @@ -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
)

0 comments on commit 1bf8793

Please sign in to comment.