Port MatrixMessageFile to C

This commit is contained in:
2017-11-20 09:25:48 +01:00
parent 9fdd193a49
commit a28a89a5f6
7 changed files with 528 additions and 115 deletions

View File

@@ -721,5 +721,22 @@ namespace Matrix {
public override void to_json(Json.Node json_data)
throws Matrix.Error;
}
[CCode (cheader_filename = "matrix-message-file.h")]
public class File : Base {
public string? filename { get; set; default = null; }
public string? url { get; set; default = null; }
public Matrix.FileInfo? info { get; set; default = null; }
public string? thumbnail_url {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;
}
}
}