Port MatrixMessageAudio to C

This commit is contained in:
2017-11-20 10:03:14 +01:00
parent c5d1fa60f4
commit 33b36a4e82
7 changed files with 328 additions and 77 deletions

View File

@@ -754,5 +754,19 @@ namespace Matrix {
to_json(Json.Node json_data)
throws Matrix.Error;
}
[CCode (cheader_filename = "matrix-message-audio.h")]
public class Audio : Base {
public string? url { get; set; default = null; }
public Matrix.AudioInfo? info { 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;
}
}
}