Port MatrixEventRoom to C

This commit is contained in:
2017-11-13 13:10:57 +01:00
parent 552a36d65d
commit 64d1674816
6 changed files with 738 additions and 149 deletions

View File

@@ -489,5 +489,23 @@ namespace Matrix {
[CCode (cheader_filename = "matrix-event-base.h")]
public static void unregister_type(string event_type);
[CCode (cheader_filename = "matrix-event-room-base.h")]
public abstract class Room : Matrix.Event.Base {
public string? event_id { get; set; default = null; }
public string? room_id { get; set; default = null; }
public string? sender { get; set; default = null; }
public long age { get; set; default = 0; }
public string? redacted_because { get; set; default = null; }
public string? transaction_id { get; set; default = null; }
public Room();
protected override void from_json(Json.Node json_data)
throws Matrix.Error;
protected override void to_json(Json.Node json_data)
throws Matrix.Error;
}
}
}