Port MatrixMessageLocation to C

This commit is contained in:
2017-11-18 11:52:29 +01:00
parent 3e7979b905
commit 3da4c4d70a
7 changed files with 402 additions and 88 deletions

View File

@@ -650,5 +650,20 @@ namespace Matrix {
public override void to_json(Json.Node json_data)
throws Matrix.Error;
}
[CCode (cheader_filename = "matrix-message-location.h")]
public class Location : Base {
public string? geo_uri { 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;
}
}
}