Port MatrixMessageVideo to C

This commit is contained in:
2017-11-20 10:27:17 +01:00
parent d2ec7e9507
commit 0a2d65b0fd
7 changed files with 333 additions and 75 deletions

View File

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