2020-03-18 20:56:42 +01:00
|
|
|
package com.h.pixeldroid.objects
|
|
|
|
|
|
|
|
/*
|
|
|
|
Represents a notification of an event relevant to the user.
|
|
|
|
https://docs.joinmastodon.org/entities/notification/
|
|
|
|
*/
|
2020-04-02 19:57:07 +02:00
|
|
|
data class Notification(
|
2020-03-18 20:56:42 +01:00
|
|
|
//Required attributes
|
2020-04-02 19:57:07 +02:00
|
|
|
override val id: String,
|
2020-03-18 20:56:42 +01:00
|
|
|
val type: NotificationType,
|
|
|
|
val created_at: String, //ISO 8601 Datetime
|
|
|
|
val account: Account,
|
|
|
|
//Optional attributes
|
|
|
|
val status: Status? = null
|
2020-04-02 19:57:07 +02:00
|
|
|
): FeedContent() {
|
2020-03-18 20:56:42 +01:00
|
|
|
enum class NotificationType {
|
|
|
|
follow, mention, reblog, favourite
|
|
|
|
}
|
|
|
|
}
|