Rename API.send_message_event and API.send_room_event

This is to avoid confusion.

* send_message_event became send_event
* send_room_event became send_state_event
This commit is contained in:
Gergely Polonkai 2016-03-18 22:07:46 +00:00
parent b125086669
commit 161c171144
2 changed files with 4 additions and 4 deletions

View File

@ -761,7 +761,7 @@ public interface Matrix.API : GLib.Object {
* @param content the content of the event as a {@link Json.Node}
*/
public abstract void
send_message_event([CCode (delegate_target_pos = 1.5, scope = "async")]
send_event([CCode (delegate_target_pos = 1.5, scope = "async")]
owned Matrix.API.Callback? @callback,
string room_id,
string event_type,
@ -819,7 +819,7 @@ public interface Matrix.API : GLib.Object {
* @param content the content of the state event
*/
public abstract void
send_room_event([CCode (delegate_target_pos = 1.5, scope = "async")]
send_state_event([CCode (delegate_target_pos = 1.5, scope = "async")]
owned Matrix.API.Callback? @callback,
string room_id,
string event_type,

View File

@ -1289,7 +1289,7 @@ public class Matrix.HTTPAPI : GLib.Object, Matrix.API {
}
public void
send_message_event(API.Callback? cb,
send_event(API.Callback? cb,
string room_id,
string event_type,
string txn_id,
@ -1330,7 +1330,7 @@ public class Matrix.HTTPAPI : GLib.Object, Matrix.API {
}
public void
send_room_event(API.Callback? cb,
send_state_event(API.Callback? cb,
string room_id,
string event_type,
string? state_key,