Port MatrixMessageImage to C

This commit is contained in:
2017-11-20 09:26:13 +01:00
parent a9cddf4303
commit a599541184
7 changed files with 472 additions and 104 deletions

View File

@@ -738,5 +738,21 @@ namespace Matrix {
to_json(Json.Node json_data)
throws Matrix.Error;
}
[CCode (cheader_filename = "matrix-message-image.h")]
public class Image : Base {
public string? url { get; set; default = null; }
public string? thumbnail_url { get; set; default = null; }
public Matrix.ImageInfo? info { get; set; default = null; }
public Matrix.ImageInfo? thumbnail_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;
}
}
}