fix klint warnings

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-02-23 15:07:09 +01:00
parent 4f1a188a38
commit 73ce2716de
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
6 changed files with 13 additions and 14 deletions

View File

@ -272,7 +272,8 @@ class MagicFirebaseMessagingService : FirebaseMessagingService() {
apiVersion, apiVersion,
signatureVerification.userEntity.baseUrl, signatureVerification.userEntity.baseUrl,
decryptedPushMessage.id decryptedPushMessage.id
), null ),
null
) )
.repeatWhen { completed -> .repeatWhen { completed ->
completed.zipWith(Observable.range(1, 12), { _, i -> i }) completed.zipWith(Observable.range(1, 12), { _, i -> i })

View File

@ -28,25 +28,25 @@ import kotlinx.android.parcel.Parcelize
@JsonObject @JsonObject
data class Mention( data class Mention(
@JsonField(name = ["id"]) @JsonField(name = ["id"])
var id : String, var id: String,
@JsonField(name = ["label"]) @JsonField(name = ["label"])
var label : String, var label: String,
// type of user (guests or users or calls) // type of user (guests or users or calls)
@JsonField(name = ["source"]) @JsonField(name = ["source"])
var source : String, var source: String,
@JsonField(name = ["status"]) @JsonField(name = ["status"])
var status : String?, var status: String?,
@JsonField(name = ["statusIcon"]) @JsonField(name = ["statusIcon"])
var statusIcon : String?, var statusIcon: String?,
@JsonField(name = ["statusMessage"]) @JsonField(name = ["statusMessage"])
var statusMessage : String? var statusMessage: String?
) : Parcelable { ) : Parcelable {
// This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject' // This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject'
constructor() : this("", "", "", "", "", "") constructor() : this("", "", "", "", "", "")
} }

View File

@ -12,7 +12,7 @@ data class ClearAt(
var type: String, var type: String,
@JsonField(name = ["time"]) @JsonField(name = ["time"])
var time: String var time: String
) : Parcelable{ ) : Parcelable {
// This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject' // This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject'
constructor() : this("type", "time") constructor() : this("type", "time")
} }

View File

@ -1,11 +1,9 @@
package com.nextcloud.talk.models.json.status package com.nextcloud.talk.models.json.status
enum class StatusType(val string: String) { enum class StatusType(val string: String) {
ONLINE("online"), ONLINE("online"),
OFFLINE("offline"), OFFLINE("offline"),
DND("dnd"), DND("dnd"),
AWAY("away"), AWAY("away"),
INVISIBLE("invisible"); INVISIBLE("invisible");
} }

View File

@ -17,7 +17,7 @@ data class PredefinedStatus(
var message: String, var message: String,
@JsonField(name = ["clearAt"]) @JsonField(name = ["clearAt"])
var clearAt: ClearAt? var clearAt: ClearAt?
) : Parcelable { ) : Parcelable {
// This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject' // This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject'
constructor() : this("id", "icon", "message", null) constructor() : this("id", "icon", "message", null)
} }

View File

@ -14,4 +14,4 @@ data class PredefinedStatusOCS(
) : GenericOCS(), Parcelable { ) : GenericOCS(), Parcelable {
// This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject' // This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject'
constructor() : this(null) constructor() : this(null)
} }