forked from Qortal/qortal
Add JAXB discriminator to GROUP_INVITE transactions.
This commit is contained in:
parent
b2f235f7a5
commit
f167d0c831
@ -7,6 +7,7 @@ import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
|
||||
import org.eclipse.persistence.oxm.annotations.XmlDiscriminatorValue;
|
||||
import org.qora.transaction.Transaction.TransactionType;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
@ -14,6 +15,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
// All properties to be converted to JSON via JAXB
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@Schema(allOf = { TransactionData.class })
|
||||
//JAXB: use this subclass if XmlDiscriminatorNode matches XmlDiscriminatorValue below:
|
||||
@XmlDiscriminatorValue("GROUP_INVITE")
|
||||
public class GroupInviteTransactionData extends TransactionData {
|
||||
|
||||
// Properties
|
||||
|
Loading…
Reference in New Issue
Block a user