From 9285fd07bf555fdf46954c4adfa58751e44633a3 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 12 Oct 2021 17:07:59 +0200 Subject: Fix compiler warnings ('Type `uint8[]' can not be used for a GLib.Object property') --- xmpp-vala/src/module/xep/0166_jingle/content.vala | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'xmpp-vala/src/module/xep/0166_jingle') diff --git a/xmpp-vala/src/module/xep/0166_jingle/content.vala b/xmpp-vala/src/module/xep/0166_jingle/content.vala index be78c91a..b51bb26d 100644 --- a/xmpp-vala/src/module/xep/0166_jingle/content.vala +++ b/xmpp-vala/src/module/xep/0166_jingle/content.vala @@ -238,8 +238,15 @@ public class Xmpp.Xep.Jingle.Content : Object { } public class Xmpp.Xep.Jingle.ContentEncryption : Object { - public string encryption_ns { get; set; } - public string encryption_name { get; set; } - public uint8[] our_key { get; set; } - public uint8[] peer_key { get; set; } + public string encryption_ns; + public string encryption_name; + public uint8[] our_key; + public uint8[] peer_key; + + public class ContentEncryption(string encryption_ns, string encryption_name, uint8[] our_key = new uint8[]{}, uint8[] peer_key = new uint8[]{}) { + this.encryption_ns = encryption_ns; + this.encryption_name = encryption_name; + this.our_key = our_key; + this.peer_key = peer_key; + } } \ No newline at end of file -- cgit v1.2.3-70-g09d2