Private
Public Access
1
0

initial scaffolding for inverted, custom message list

This commit is contained in:
2025-04-30 15:58:47 -07:00
parent 3e1fa63fdf
commit e976b3db4c
10 changed files with 233 additions and 0 deletions

16
src/models/message.vala Normal file
View File

@@ -0,0 +1,16 @@
using GLib;
public class Message : Object
{
public string guid { get; set; default = ""; }
public string content { get; set; default = ""; }
public int64 date { get; set; default = 0; }
public string?sender { get; set; default = null; }
public Message.from_hash_table(HashTable<string, Variant> message_data) {
guid = message_data["guid"].get_string();
content = message_data["content"].get_string();
date = message_data["date"].get_int64();
sender = message_data["sender"].get_string();
}
}