Skip to content

Commit

Permalink
add JsonField's to ClearAt.kt
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Hibbe <[email protected]>
  • Loading branch information
mahibi committed Feb 3, 2022
1 parent a695327 commit e4e3708
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
package com.nextcloud.talk.models.json.status

import android.os.Parcelable
import com.bluelinelabs.logansquare.annotation.JsonField
import com.bluelinelabs.logansquare.annotation.JsonObject
import kotlinx.android.parcel.Parcelize

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

0 comments on commit e4e3708

Please sign in to comment.