aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/src/module')
-rw-r--r--xmpp-vala/src/module/xep/0004_data_forms.vala12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0004_data_forms.vala b/xmpp-vala/src/module/xep/0004_data_forms.vala
index 1ed899fc..fe39874a 100644
--- a/xmpp-vala/src/module/xep/0004_data_forms.vala
+++ b/xmpp-vala/src/module/xep/0004_data_forms.vala
@@ -9,6 +9,8 @@ public class DataForm {
public StanzaNode stanza_node { get; set; }
public Gee.List<Field> fields = new ArrayList<Field>();
public string? form_type = null;
+ public string? instructions = null;
+ public string? title = null;
public StanzaNode get_submit_node() {
stanza_node.set_attribute("type", "submit");
@@ -215,6 +217,16 @@ public class DataForm {
fields.add(new TextSingleField(field_node)); break;
}
}
+
+ StanzaNode? instructions_node = node.get_subnode("instructions", NS_URI);
+ if (instructions_node != null) {
+ instructions = instructions_node.get_string_content();
+ }
+
+ StanzaNode? title_node = node.get_subnode("title", NS_URI);
+ if (title_node != null) {
+ title = title_node.get_string_content();
+ }
}
internal DataForm() {