Add save_state() and load_state() to Client

This commit is contained in:
2016-03-20 12:36:57 +00:00
parent 734a8349d0
commit 4ce4ae4641
3 changed files with 102 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ public class Matrix.HTTPAPI : GLib.Object, Matrix.API {
_soup_session.ssl_strict = value;
}
}
private string? _user_id;
protected string? _user_id;
public string? user_id {
get {
return _user_id;
@@ -97,7 +97,7 @@ public class Matrix.HTTPAPI : GLib.Object, Matrix.API {
}
public string? token { get; set; default = null; }
public string? refresh_token { get; set; default = null; }
private string? _homeserver;
protected string? _homeserver;
public string? homeserver {
get {
return _homeserver;