Port MatrixEventCallInvite to C

This commit is contained in:
2017-11-21 15:07:44 +01:00
parent b5de83be3c
commit 6e16269913
7 changed files with 481 additions and 124 deletions

View File

@@ -761,6 +761,19 @@ namespace Matrix {
protected override void to_json(Json.Node json_data)
throws Matrix.Error;
}
[CCode (cheader_filename = "matrix-event-call-invite.h")]
public class CallInvite : Call {
public Matrix.CallOfferType offer_type { get; set; default = Matrix.CallOfferType.UNKNOWN; }
public string? sdp { get; set; default = null; }
public int lifetime { get; set; default = -1; }
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")]