From 8d725d9f3441ac7dcfb84f1522fd7e09feef1258 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 18 Mar 2016 17:05:18 +0100 Subject: [PATCH] Patch up Matrix.HTTPAPI constructor It now includes a refresh_token parameter, and has a documentation. --- src/matrix-http-api.vala | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/matrix-http-api.vala b/src/matrix-http-api.vala index c36828b..1b6324c 100644 --- a/src/matrix-http-api.vala +++ b/src/matrix-http-api.vala @@ -126,10 +126,20 @@ public class Matrix.HTTPAPI : GLib.Object, Matrix.API { } } + /** + * Create a new MatrixHTTPAPI object. + * + * @param base_url the base URL of the homeserver to use + * @param token an access token to use + * @param refresh_token a refresh token to use + * @return a new MatrixHTTPAPI object + */ protected - HTTPAPI(string base_url, string? token = null) + HTTPAPI(string base_url, string? token = null, string? refresh_token = null) { - Object(base_url : base_url, token : token); + Object(base_url : base_url, + token : token, + refresh_token : refresh_token); _soup_session.ssl_strict = true; }