mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-19 02:22:05 +01:00
[softwareinfo] Register urn:xmpp:dataforms:softwareinfo's field types
This commit is contained in:
parent
e1845a52ca
commit
182d01a4b0
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2020 Aditya Borikar
|
||||
* Copyright 2020 Aditya Borikar, 2021 Florian Schmaus
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -20,6 +20,7 @@ import java.util.List;
|
|||
|
||||
import org.jivesoftware.smack.util.EqualsUtil;
|
||||
import org.jivesoftware.smack.util.HashCode;
|
||||
import org.jivesoftware.smackx.formtypes.FormFieldRegistry;
|
||||
import org.jivesoftware.smackx.mediaelement.element.MediaElement;
|
||||
import org.jivesoftware.smackx.xdata.FormField;
|
||||
import org.jivesoftware.smackx.xdata.FormFieldChildElement;
|
||||
|
@ -47,6 +48,11 @@ public final class SoftwareInfoForm extends FilledForm {
|
|||
public static final String SOFTWARE_VERSION = "software_version";
|
||||
public static final String ICON = "icon";
|
||||
|
||||
static {
|
||||
FormFieldRegistry.register(FORM_TYPE, FormField.Type.text_single,
|
||||
OS, OS_VERSION, SOFTWARE, SOFTWARE_VERSION);
|
||||
}
|
||||
|
||||
private SoftwareInfoForm(DataForm dataForm) {
|
||||
super(dataForm);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue