Rename Matrix.API.get_user_presence() to get_presence()

This is for not to clash with future Matrix.Client.get_user_presence()
and to comply with Matrix.API.get_profile() which has similar
functionality.
This commit is contained in:
Gergely Polonkai 2016-03-14 22:33:36 +00:00
parent f1d1eda2e4
commit 04950f8c34
3 changed files with 5 additions and 5 deletions

View File

@ -177,7 +177,7 @@ public interface Matrix.API : GLib.Object {
* @param user_id the user whose presence list is being modified
*/
public abstract void
get_user_presence([CCode (delegate_target_pos = 1.5, scope = "async")]
get_presence([CCode (delegate_target_pos = 1.5, scope = "async")]
owned Matrix.API.Callback? @callback,
string user_id)
throws Matrix.Error;

View File

@ -591,7 +591,7 @@ public class Matrix.HTTPAPI : GLib.Object, Matrix.API {
}
public void
get_user_presence(API.Callback? cb,
get_presence(API.Callback? cb,
string user_id)
throws Matrix.Error
{

View File

@ -68,7 +68,7 @@ create_room_finished(MatrixAPI *api,
}
static void
get_user_presence_finished(MatrixAPI *api,
get_presence_finished(MatrixAPI *api,
const gchar *content_type,
JsonNode *json_content,
GByteArray *raw_content,
@ -143,8 +143,8 @@ login_finished(MatrixAPI *api,
MATRIX_ROOM_VISIBILITY_DEFAULT,
NULL, NULL, NULL, NULL, NULL);
matrix_api_get_presence_list(api, NULL, NULL, user_id, NULL);
matrix_api_get_user_presence(api,
get_user_presence_finished, NULL,
matrix_api_get_presence(api,
get_presence_finished, NULL,
user_id, NULL);
} else {
g_printf("Login unsuccessful!\n");