-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marcel Hibbe <[email protected]>
- Loading branch information
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
13 changes: 12 additions & 1 deletion
13
app/src/main/java/com/nextcloud/talk/models/json/status/ClearAt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} |