Port MatrixEventRoomJoinRules to C

This commit is contained in:
2017-11-21 10:51:44 +01:00
parent b0b1d5d26d
commit ed579294d2
7 changed files with 323 additions and 91 deletions

View File

@@ -729,6 +729,17 @@ namespace Matrix {
protected override void to_json(Json.Node json_data)
throws Matrix.Error;
}
[CCode (cheader_filename = "matrix-event-room-join-rules.h")]
public class RoomJoinRules : State {
public Matrix.JoinRules join_rules { get; set; default = Matrix.JoinRules.UNKNOWN; }
protected override void from_json(Json.Node json_data)
throws Matrix.Error;
protected override void to_json(Json.Node json_data)
throws Matrix.Error;
}
}
[CCode (gir_namespace = "MatrixMessage", gir_version = "0.0")]