Tooth/src/Widgets/Notification.vala

23 lines
522 B
Vala
Raw Normal View History

2018-04-17 12:01:55 +00:00
using Gtk;
2022-11-13 20:57:43 +00:00
public class Tooth.Widgets.Notification : Widgets.Status {
2019-03-07 16:16:52 +00:00
2020-05-29 12:19:35 +00:00
public API.Notification notification { get; construct set; }
2018-04-17 12:01:55 +00:00
2020-05-29 12:19:35 +00:00
public Notification (API.Notification obj) {
API.Status status;
if (obj.status != null)
status = obj.status;
else
status = new API.Status.from_account (obj.account);
2018-04-17 12:01:55 +00:00
2021-07-23 11:41:03 +00:00
Object (
notification: obj,
kind_instigator: obj.account,
kind: obj.kind,
status: status
);
2018-04-17 12:10:57 +00:00
}
2019-03-07 16:16:52 +00:00
2018-04-17 12:01:55 +00:00
}