aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/entity/account.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-05-24 17:28:39 +0200
committerfiaxh <git@mx.ax.lt>2017-05-24 17:29:17 +0200
commit142257a544b36e60b738e55e5f9f096f1169c389 (patch)
tree0e02590f59615689b4c77dbe5b23e51fd04bb96f /libdino/src/entity/account.vala
parentbcb96909c9b53c2ca5287433f2fef103b0ddf317 (diff)
downloaddino-142257a544b36e60b738e55e5f9f096f1169c389.tar.gz
dino-142257a544b36e60b738e55e5f9f096f1169c389.zip
fixup bcb9690 (Roster versioning)
Diffstat (limited to 'libdino/src/entity/account.vala')
-rw-r--r--libdino/src/entity/account.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdino/src/entity/account.vala b/libdino/src/entity/account.vala
index 59a76c7d..23544b46 100644
--- a/libdino/src/entity/account.vala
+++ b/libdino/src/entity/account.vala
@@ -15,6 +15,7 @@ public class Account : Object {
}
public string? alias { get; set; }
public bool enabled { get; set; default = false; }
+ public string? roster_version { get; set; }
private Database? db;
@@ -34,6 +35,7 @@ public class Account : Object {
password = row[db.account.password];
alias = row[db.account.alias];
enabled = row[db.account.enabled];
+ roster_version = row[db.account.roster_version];
notify.connect(on_update);
}
@@ -46,6 +48,7 @@ public class Account : Object {
.value(db.account.password, password)
.value(db.account.alias, alias)
.value(db.account.enabled, enabled)
+ .value(db.account.roster_version, roster_version)
.perform();
notify.connect(on_update);
@@ -83,6 +86,8 @@ public class Account : Object {
update.set(db.account.alias, alias); break;
case "enabled":
update.set(db.account.enabled, enabled); break;
+ case "roster-version":
+ update.set(db.account.roster_version, roster_version); break;
}
update.perform();
}