Port MatrixEventRoomThirdPartyInvite to C

This commit is contained in:
2017-11-22 13:31:33 +01:00
parent f4eb461431
commit 24b95117aa
7 changed files with 666 additions and 179 deletions

View File

@@ -284,6 +284,9 @@ namespace Matrix {
throws Matrix.Error;
}
public struct ThirdPartyInvitePublicKey {
}
/* Compact classes */
[CCode (cheader_filename = "matrix-compacts.h")]
public abstract class JsonCompact {
@@ -856,6 +859,26 @@ namespace Matrix {
protected override void to_json(Json.Node json_data)
throws Matrix.Error;
}
[CCode (cheader_filename = "matrix-event-room-third-party-invite.h")]
public class RoomThirdPartyInvite : State {
public struct PublicKey {
string? key;
string? validity_url;
}
public string? display_name { get; set; default = null; }
public string? key_validity_url { get; set; default = null; }
public string? public_key { get; set; default = null;}
public Matrix.ThirdPartyInvitePublicKey[] public_keys { get; set; }
public string? token { get; set; default = null;}
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")]