diff options
| author | Kostya <mail@sartin.in> | 2026-08-13 22:44:04 +0000 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-08-13 22:44:04 +0000 |
| commit | ffd09319b04f7360cd95784272eadad60c2c5a79 (patch) | |
| tree | cd5d6f493845b338ceaf259549ea527ed8d49301 /service/src | |
| parent | 4cdf4f066309d0a0e8a11081aa7bd1b0828a2f91 (diff) | |
| download | guess-market-ffd09319b04f7360cd95784272eadad60c2c5a79.tar.gz guess-market-ffd09319b04f7360cd95784272eadad60c2c5a79.tar.xz guess-market-ffd09319b04f7360cd95784272eadad60c2c5a79.zip | |
Add legacy XML model bindings, mapper infra, and normalize account balance
Rename repositories package to repository, add MarketAction domain type,
and round Account.initialBalance through BigDecimalOptions.toMoney.
Diffstat (limited to 'service/src')
28 files changed, 2277 insertions, 4 deletions
diff --git a/service/src/main/java/market/guess/service/domain/Account.java b/service/src/main/java/market/guess/service/domain/Account.java index 8b510a5..e350400 100644 --- a/service/src/main/java/market/guess/service/domain/Account.java +++ b/service/src/main/java/market/guess/service/domain/Account.java | |||
| @@ -21,7 +21,7 @@ public final class Account { | |||
| 21 | super(); | 21 | super(); |
| 22 | this.accountType = accountType; | 22 | this.accountType = accountType; |
| 23 | this.owner = owner; | 23 | this.owner = owner; |
| 24 | this.balance = initialBalance; | 24 | this.balance = BigDecimalOptions.toMoney(initialBalance); |
| 25 | this.clock = clock; | 25 | this.clock = clock; |
| 26 | } | 26 | } |
| 27 | } | 27 | } |
diff --git a/service/src/main/java/market/guess/service/domain/BigDecimalOptions.java b/service/src/main/java/market/guess/service/domain/BigDecimalOptions.java index 159905f..25306c6 100644 --- a/service/src/main/java/market/guess/service/domain/BigDecimalOptions.java +++ b/service/src/main/java/market/guess/service/domain/BigDecimalOptions.java | |||
| @@ -8,7 +8,11 @@ public record BigDecimalOptions(int scale, RoundingMode roundingMode) { | |||
| 8 | public static final BigDecimal ZERO_MONEY = | 8 | public static final BigDecimal ZERO_MONEY = |
| 9 | BigDecimal.ZERO.setScale(DEFAULT.scale(), DEFAULT.roundingMode()); | 9 | BigDecimal.ZERO.setScale(DEFAULT.scale(), DEFAULT.roundingMode()); |
| 10 | 10 | ||
| 11 | public static BigDecimal valueOf(double v) { | 11 | public static BigDecimal toMoney(BigDecimal value) { |
| 12 | return value.setScale(DEFAULT.scale(), DEFAULT.roundingMode()); | ||
| 13 | } | ||
| 14 | |||
| 15 | public static BigDecimal toMoney(double v) { | ||
| 12 | return BigDecimal.valueOf(v).setScale(DEFAULT.scale(), DEFAULT.roundingMode()); | 16 | return BigDecimal.valueOf(v).setScale(DEFAULT.scale(), DEFAULT.roundingMode()); |
| 13 | } | 17 | } |
| 14 | } | 18 | } |
diff --git a/service/src/main/java/market/guess/service/domain/MarketAction.java b/service/src/main/java/market/guess/service/domain/MarketAction.java new file mode 100644 index 0000000..c0aabd1 --- /dev/null +++ b/service/src/main/java/market/guess/service/domain/MarketAction.java | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | package market.guess.service.domain; | ||
| 2 | |||
| 3 | public record MarketAction( | ||
| 4 | String kind, String at, String userName, String eventKey, String optionKey, long quantity) { | ||
| 5 | |||
| 6 | public static final String BUY = "BUY"; | ||
| 7 | public static final String SELL = "SELL"; | ||
| 8 | public static final String CLOSE = "CLOSE"; | ||
| 9 | |||
| 10 | public static MarketAction buy( | ||
| 11 | String at, String userName, String eventKey, String optionKey, long quantity) { | ||
| 12 | return new MarketAction(BUY, at, userName, eventKey, optionKey, quantity); | ||
| 13 | } | ||
| 14 | |||
| 15 | public static MarketAction sell( | ||
| 16 | String at, String userName, String eventKey, String optionKey, long quantity) { | ||
| 17 | return new MarketAction(SELL, at, userName, eventKey, optionKey, quantity); | ||
| 18 | } | ||
| 19 | |||
| 20 | public static MarketAction close( | ||
| 21 | String at, String userName, String eventKey, String winningOptionKey) { | ||
| 22 | return new MarketAction(CLOSE, at, userName, eventKey, winningOptionKey, 0); | ||
| 23 | } | ||
| 24 | } | ||
diff --git a/service/src/main/java/market/guess/service/infrastructure/Mapper.java b/service/src/main/java/market/guess/service/infrastructure/Mapper.java new file mode 100644 index 0000000..07f565b --- /dev/null +++ b/service/src/main/java/market/guess/service/infrastructure/Mapper.java | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | package market.guess.service.infrastructure; | ||
| 2 | |||
| 3 | public interface Mapper {} | ||
diff --git a/service/src/main/java/market/guess/service/infrastructure/adapter/InstantTypeAdapter.java b/service/src/main/java/market/guess/service/infrastructure/adapter/InstantTypeAdapter.java new file mode 100644 index 0000000..0e8a0e0 --- /dev/null +++ b/service/src/main/java/market/guess/service/infrastructure/adapter/InstantTypeAdapter.java | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | package market.guess.service.infrastructure.adapter; | ||
| 2 | |||
| 3 | import com.google.gson.*; | ||
| 4 | import java.lang.reflect.Type; | ||
| 5 | import java.time.Instant; | ||
| 6 | |||
| 7 | public class InstantTypeAdapter implements JsonSerializer<Instant>, JsonDeserializer<Instant> { | ||
| 8 | @Override | ||
| 9 | public JsonElement serialize(Instant src, Type typeOfSrc, JsonSerializationContext context) { | ||
| 10 | return new JsonPrimitive(src.toString()); | ||
| 11 | } | ||
| 12 | |||
| 13 | @Override | ||
| 14 | public Instant deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) | ||
| 15 | throws JsonParseException { | ||
| 16 | return Instant.parse(json.getAsString()); | ||
| 17 | } | ||
| 18 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v1/Comision.java b/service/src/main/java/market/guess/service/model/v1/Comision.java new file mode 100644 index 0000000..c8a374c --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v1/Comision.java | |||
| @@ -0,0 +1,94 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v1; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAttribute; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlType; | ||
| 15 | import jakarta.xml.bind.annotation.XmlValue; | ||
| 16 | |||
| 17 | |||
| 18 | /** | ||
| 19 | * <p>Java class for anonymous complex type</p>. | ||
| 20 | * | ||
| 21 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 22 | * | ||
| 23 | * <pre>{@code | ||
| 24 | * <complexType> | ||
| 25 | * <simpleContent> | ||
| 26 | * <extension base="<http://www.w3.org/2001/XMLSchema>int"> | ||
| 27 | * <attribute name="type" use="required"> | ||
| 28 | * <simpleType> | ||
| 29 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> | ||
| 30 | * <enumeration value="on-close"/> | ||
| 31 | * <enumeration value="on-purchase"/> | ||
| 32 | * </restriction> | ||
| 33 | * </simpleType> | ||
| 34 | * </attribute> | ||
| 35 | * </extension> | ||
| 36 | * </simpleContent> | ||
| 37 | * </complexType> | ||
| 38 | * }</pre> | ||
| 39 | * | ||
| 40 | * | ||
| 41 | */ | ||
| 42 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 43 | @XmlType(name = "", propOrder = { | ||
| 44 | "value" | ||
| 45 | }) | ||
| 46 | @XmlRootElement(name = "comision") | ||
| 47 | public class Comision { | ||
| 48 | |||
| 49 | @XmlValue | ||
| 50 | protected int value; | ||
| 51 | @XmlAttribute(name = "type", required = true) | ||
| 52 | protected String type; | ||
| 53 | |||
| 54 | /** | ||
| 55 | * Gets the value of the value property. | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | public int getValue() { | ||
| 59 | return value; | ||
| 60 | } | ||
| 61 | |||
| 62 | /** | ||
| 63 | * Sets the value of the value property. | ||
| 64 | * | ||
| 65 | */ | ||
| 66 | public void setValue(int value) { | ||
| 67 | this.value = value; | ||
| 68 | } | ||
| 69 | |||
| 70 | /** | ||
| 71 | * Gets the value of the type property. | ||
| 72 | * | ||
| 73 | * @return | ||
| 74 | * possible object is | ||
| 75 | * {@link String } | ||
| 76 | * | ||
| 77 | */ | ||
| 78 | public String getType() { | ||
| 79 | return type; | ||
| 80 | } | ||
| 81 | |||
| 82 | /** | ||
| 83 | * Sets the value of the type property. | ||
| 84 | * | ||
| 85 | * @param value | ||
| 86 | * allowed object is | ||
| 87 | * {@link String } | ||
| 88 | * | ||
| 89 | */ | ||
| 90 | public void setType(String value) { | ||
| 91 | this.type = value; | ||
| 92 | } | ||
| 93 | |||
| 94 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v1/GMEvent.java b/service/src/main/java/market/guess/service/model/v1/GMEvent.java new file mode 100644 index 0000000..efe5d30 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v1/GMEvent.java | |||
| @@ -0,0 +1,215 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v1; | ||
| 9 | |||
| 10 | import java.util.ArrayList; | ||
| 11 | import java.util.List; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 13 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 14 | import jakarta.xml.bind.annotation.XmlAttribute; | ||
| 15 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 16 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 17 | import jakarta.xml.bind.annotation.XmlType; | ||
| 18 | |||
| 19 | |||
| 20 | /** | ||
| 21 | * <p>Java class for anonymous complex type</p>. | ||
| 22 | * | ||
| 23 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 24 | * | ||
| 25 | * <pre>{@code | ||
| 26 | * <complexType> | ||
| 27 | * <complexContent> | ||
| 28 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 29 | * <sequence> | ||
| 30 | * <element ref="{}id"/> | ||
| 31 | * <element ref="{}description"/> | ||
| 32 | * <element ref="{}comision"/> | ||
| 33 | * <element ref="{}GM-options"/> | ||
| 34 | * <element ref="{}GM-method"/> | ||
| 35 | * </sequence> | ||
| 36 | * <attribute name="name" use="required"> | ||
| 37 | * <simpleType> | ||
| 38 | * <list itemType="{http://www.w3.org/2001/XMLSchema}string" /> | ||
| 39 | * </simpleType> | ||
| 40 | * </attribute> | ||
| 41 | * </restriction> | ||
| 42 | * </complexContent> | ||
| 43 | * </complexType> | ||
| 44 | * }</pre> | ||
| 45 | * | ||
| 46 | * | ||
| 47 | */ | ||
| 48 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 49 | @XmlType(name = "", propOrder = { | ||
| 50 | "id", | ||
| 51 | "description", | ||
| 52 | "comision", | ||
| 53 | "gmOptions", | ||
| 54 | "gmMethod" | ||
| 55 | }) | ||
| 56 | @XmlRootElement(name = "GM-event") | ||
| 57 | public class GMEvent { | ||
| 58 | |||
| 59 | protected int id; | ||
| 60 | @XmlElement(required = true) | ||
| 61 | protected String description; | ||
| 62 | @XmlElement(required = true) | ||
| 63 | protected Comision comision; | ||
| 64 | @XmlElement(name = "GM-options", required = true) | ||
| 65 | protected GMOptions gmOptions; | ||
| 66 | @XmlElement(name = "GM-method", required = true) | ||
| 67 | protected GMMethod gmMethod; | ||
| 68 | @XmlAttribute(name = "name", required = true) | ||
| 69 | protected List<String> name; | ||
| 70 | |||
| 71 | /** | ||
| 72 | * Gets the value of the id property. | ||
| 73 | * | ||
| 74 | */ | ||
| 75 | public int getId() { | ||
| 76 | return id; | ||
| 77 | } | ||
| 78 | |||
| 79 | /** | ||
| 80 | * Sets the value of the id property. | ||
| 81 | * | ||
| 82 | */ | ||
| 83 | public void setId(int value) { | ||
| 84 | this.id = value; | ||
| 85 | } | ||
| 86 | |||
| 87 | /** | ||
| 88 | * Gets the value of the description property. | ||
| 89 | * | ||
| 90 | * @return | ||
| 91 | * possible object is | ||
| 92 | * {@link String } | ||
| 93 | * | ||
| 94 | */ | ||
| 95 | public String getDescription() { | ||
| 96 | return description; | ||
| 97 | } | ||
| 98 | |||
| 99 | /** | ||
| 100 | * Sets the value of the description property. | ||
| 101 | * | ||
| 102 | * @param value | ||
| 103 | * allowed object is | ||
| 104 | * {@link String } | ||
| 105 | * | ||
| 106 | */ | ||
| 107 | public void setDescription(String value) { | ||
| 108 | this.description = value; | ||
| 109 | } | ||
| 110 | |||
| 111 | /** | ||
| 112 | * Gets the value of the comision property. | ||
| 113 | * | ||
| 114 | * @return | ||
| 115 | * possible object is | ||
| 116 | * {@link Comision } | ||
| 117 | * | ||
| 118 | */ | ||
| 119 | public Comision getComision() { | ||
| 120 | return comision; | ||
| 121 | } | ||
| 122 | |||
| 123 | /** | ||
| 124 | * Sets the value of the comision property. | ||
| 125 | * | ||
| 126 | * @param value | ||
| 127 | * allowed object is | ||
| 128 | * {@link Comision } | ||
| 129 | * | ||
| 130 | */ | ||
| 131 | public void setComision(Comision value) { | ||
| 132 | this.comision = value; | ||
| 133 | } | ||
| 134 | |||
| 135 | /** | ||
| 136 | * Gets the value of the gmOptions property. | ||
| 137 | * | ||
| 138 | * @return | ||
| 139 | * possible object is | ||
| 140 | * {@link GMOptions } | ||
| 141 | * | ||
| 142 | */ | ||
| 143 | public GMOptions getGMOptions() { | ||
| 144 | return gmOptions; | ||
| 145 | } | ||
| 146 | |||
| 147 | /** | ||
| 148 | * Sets the value of the gmOptions property. | ||
| 149 | * | ||
| 150 | * @param value | ||
| 151 | * allowed object is | ||
| 152 | * {@link GMOptions } | ||
| 153 | * | ||
| 154 | */ | ||
| 155 | public void setGMOptions(GMOptions value) { | ||
| 156 | this.gmOptions = value; | ||
| 157 | } | ||
| 158 | |||
| 159 | /** | ||
| 160 | * Gets the value of the gmMethod property. | ||
| 161 | * | ||
| 162 | * @return | ||
| 163 | * possible object is | ||
| 164 | * {@link GMMethod } | ||
| 165 | * | ||
| 166 | */ | ||
| 167 | public GMMethod getGMMethod() { | ||
| 168 | return gmMethod; | ||
| 169 | } | ||
| 170 | |||
| 171 | /** | ||
| 172 | * Sets the value of the gmMethod property. | ||
| 173 | * | ||
| 174 | * @param value | ||
| 175 | * allowed object is | ||
| 176 | * {@link GMMethod } | ||
| 177 | * | ||
| 178 | */ | ||
| 179 | public void setGMMethod(GMMethod value) { | ||
| 180 | this.gmMethod = value; | ||
| 181 | } | ||
| 182 | |||
| 183 | /** | ||
| 184 | * Gets the value of the name property. | ||
| 185 | * | ||
| 186 | * <p>This accessor method returns a reference to the live list, | ||
| 187 | * not a snapshot. Therefore any modification you make to the | ||
| 188 | * returned list will be present inside the JAXB object. | ||
| 189 | * This is why there is not a <CODE>set</CODE> method for the name property.</p> | ||
| 190 | * | ||
| 191 | * <p> | ||
| 192 | * For example, to add a new item, do as follows: | ||
| 193 | * </p> | ||
| 194 | * <pre> | ||
| 195 | * getName().add(newItem); | ||
| 196 | * </pre> | ||
| 197 | * | ||
| 198 | * | ||
| 199 | * <p> | ||
| 200 | * Objects of the following type(s) are allowed in the list | ||
| 201 | * {@link String } | ||
| 202 | * </p> | ||
| 203 | * | ||
| 204 | * | ||
| 205 | * @return | ||
| 206 | * The value of the name property. | ||
| 207 | */ | ||
| 208 | public List<String> getName() { | ||
| 209 | if (name == null) { | ||
| 210 | name = new ArrayList<>(); | ||
| 211 | } | ||
| 212 | return this.name; | ||
| 213 | } | ||
| 214 | |||
| 215 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v1/GMEvents.java b/service/src/main/java/market/guess/service/model/v1/GMEvents.java new file mode 100644 index 0000000..ca4efea --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v1/GMEvents.java | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v1; | ||
| 9 | |||
| 10 | import java.util.ArrayList; | ||
| 11 | import java.util.List; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 13 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 14 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 15 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 16 | import jakarta.xml.bind.annotation.XmlType; | ||
| 17 | |||
| 18 | |||
| 19 | /** | ||
| 20 | * <p>Java class for anonymous complex type</p>. | ||
| 21 | * | ||
| 22 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 23 | * | ||
| 24 | * <pre>{@code | ||
| 25 | * <complexType> | ||
| 26 | * <complexContent> | ||
| 27 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 28 | * <sequence> | ||
| 29 | * <element ref="{}GM-event" maxOccurs="unbounded"/> | ||
| 30 | * </sequence> | ||
| 31 | * </restriction> | ||
| 32 | * </complexContent> | ||
| 33 | * </complexType> | ||
| 34 | * }</pre> | ||
| 35 | * | ||
| 36 | * | ||
| 37 | */ | ||
| 38 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 39 | @XmlType(name = "", propOrder = { | ||
| 40 | "gmEvent" | ||
| 41 | }) | ||
| 42 | @XmlRootElement(name = "GM-events") | ||
| 43 | public class GMEvents { | ||
| 44 | |||
| 45 | @XmlElement(name = "GM-event", required = true) | ||
| 46 | protected List<GMEvent> gmEvent; | ||
| 47 | |||
| 48 | /** | ||
| 49 | * Gets the value of the gmEvent property. | ||
| 50 | * | ||
| 51 | * <p>This accessor method returns a reference to the live list, | ||
| 52 | * not a snapshot. Therefore any modification you make to the | ||
| 53 | * returned list will be present inside the JAXB object. | ||
| 54 | * This is why there is not a <CODE>set</CODE> method for the gmEvent property.</p> | ||
| 55 | * | ||
| 56 | * <p> | ||
| 57 | * For example, to add a new item, do as follows: | ||
| 58 | * </p> | ||
| 59 | * <pre> | ||
| 60 | * getGMEvent().add(newItem); | ||
| 61 | * </pre> | ||
| 62 | * | ||
| 63 | * | ||
| 64 | * <p> | ||
| 65 | * Objects of the following type(s) are allowed in the list | ||
| 66 | * {@link GMEvent } | ||
| 67 | * </p> | ||
| 68 | * | ||
| 69 | * | ||
| 70 | * @return | ||
| 71 | * The value of the gmEvent property. | ||
| 72 | */ | ||
| 73 | public List<GMEvent> getGMEvent() { | ||
| 74 | if (gmEvent == null) { | ||
| 75 | gmEvent = new ArrayList<>(); | ||
| 76 | } | ||
| 77 | return this.gmEvent; | ||
| 78 | } | ||
| 79 | |||
| 80 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v1/GMLMSR.java b/service/src/main/java/market/guess/service/model/v1/GMLMSR.java new file mode 100644 index 0000000..a8e90a5 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v1/GMLMSR.java | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v1; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlType; | ||
| 14 | |||
| 15 | |||
| 16 | /** | ||
| 17 | * <p>Java class for anonymous complex type</p>. | ||
| 18 | * | ||
| 19 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 20 | * | ||
| 21 | * <pre>{@code | ||
| 22 | * <complexType> | ||
| 23 | * <complexContent> | ||
| 24 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 25 | * <sequence> | ||
| 26 | * <element ref="{}b"/> | ||
| 27 | * </sequence> | ||
| 28 | * </restriction> | ||
| 29 | * </complexContent> | ||
| 30 | * </complexType> | ||
| 31 | * }</pre> | ||
| 32 | * | ||
| 33 | * | ||
| 34 | */ | ||
| 35 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 36 | @XmlType(name = "", propOrder = { | ||
| 37 | "b" | ||
| 38 | }) | ||
| 39 | @XmlRootElement(name = "GM-LMSR") | ||
| 40 | public class GMLMSR { | ||
| 41 | |||
| 42 | protected int b; | ||
| 43 | |||
| 44 | /** | ||
| 45 | * Gets the value of the b property. | ||
| 46 | * | ||
| 47 | */ | ||
| 48 | public int getB() { | ||
| 49 | return b; | ||
| 50 | } | ||
| 51 | |||
| 52 | /** | ||
| 53 | * Sets the value of the b property. | ||
| 54 | * | ||
| 55 | */ | ||
| 56 | public void setB(int value) { | ||
| 57 | this.b = value; | ||
| 58 | } | ||
| 59 | |||
| 60 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v1/GMMethod.java b/service/src/main/java/market/guess/service/model/v1/GMMethod.java new file mode 100644 index 0000000..867d932 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v1/GMMethod.java | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v1; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlType; | ||
| 15 | |||
| 16 | |||
| 17 | /** | ||
| 18 | * <p>Java class for anonymous complex type</p>. | ||
| 19 | * | ||
| 20 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 21 | * | ||
| 22 | * <pre>{@code | ||
| 23 | * <complexType> | ||
| 24 | * <complexContent> | ||
| 25 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 26 | * <sequence> | ||
| 27 | * <element ref="{}GM-LMSR"/> | ||
| 28 | * </sequence> | ||
| 29 | * </restriction> | ||
| 30 | * </complexContent> | ||
| 31 | * </complexType> | ||
| 32 | * }</pre> | ||
| 33 | * | ||
| 34 | * | ||
| 35 | */ | ||
| 36 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 37 | @XmlType(name = "", propOrder = { | ||
| 38 | "gmlmsr" | ||
| 39 | }) | ||
| 40 | @XmlRootElement(name = "GM-method") | ||
| 41 | public class GMMethod { | ||
| 42 | |||
| 43 | @XmlElement(name = "GM-LMSR", required = true) | ||
| 44 | protected GMLMSR gmlmsr; | ||
| 45 | |||
| 46 | /** | ||
| 47 | * Gets the value of the gmlmsr property. | ||
| 48 | * | ||
| 49 | * @return | ||
| 50 | * possible object is | ||
| 51 | * {@link GMLMSR } | ||
| 52 | * | ||
| 53 | */ | ||
| 54 | public GMLMSR getGMLMSR() { | ||
| 55 | return gmlmsr; | ||
| 56 | } | ||
| 57 | |||
| 58 | /** | ||
| 59 | * Sets the value of the gmlmsr property. | ||
| 60 | * | ||
| 61 | * @param value | ||
| 62 | * allowed object is | ||
| 63 | * {@link GMLMSR } | ||
| 64 | * | ||
| 65 | */ | ||
| 66 | public void setGMLMSR(GMLMSR value) { | ||
| 67 | this.gmlmsr = value; | ||
| 68 | } | ||
| 69 | |||
| 70 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v1/GMOptions.java b/service/src/main/java/market/guess/service/model/v1/GMOptions.java new file mode 100644 index 0000000..d344f74 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v1/GMOptions.java | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v1; | ||
| 9 | |||
| 10 | import java.util.ArrayList; | ||
| 11 | import java.util.List; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 13 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 14 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 15 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 16 | import jakarta.xml.bind.annotation.XmlType; | ||
| 17 | |||
| 18 | |||
| 19 | /** | ||
| 20 | * <p>Java class for anonymous complex type</p>. | ||
| 21 | * | ||
| 22 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 23 | * | ||
| 24 | * <pre>{@code | ||
| 25 | * <complexType> | ||
| 26 | * <complexContent> | ||
| 27 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 28 | * <sequence> | ||
| 29 | * <element ref="{}GM-option" maxOccurs="2"/> | ||
| 30 | * </sequence> | ||
| 31 | * </restriction> | ||
| 32 | * </complexContent> | ||
| 33 | * </complexType> | ||
| 34 | * }</pre> | ||
| 35 | * | ||
| 36 | * | ||
| 37 | */ | ||
| 38 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 39 | @XmlType(name = "", propOrder = { | ||
| 40 | "gmOption" | ||
| 41 | }) | ||
| 42 | @XmlRootElement(name = "GM-options") | ||
| 43 | public class GMOptions { | ||
| 44 | |||
| 45 | @XmlElement(name = "GM-option", required = true) | ||
| 46 | protected List<String> gmOption; | ||
| 47 | |||
| 48 | /** | ||
| 49 | * Gets the value of the gmOption property. | ||
| 50 | * | ||
| 51 | * <p>This accessor method returns a reference to the live list, | ||
| 52 | * not a snapshot. Therefore any modification you make to the | ||
| 53 | * returned list will be present inside the JAXB object. | ||
| 54 | * This is why there is not a <CODE>set</CODE> method for the gmOption property.</p> | ||
| 55 | * | ||
| 56 | * <p> | ||
| 57 | * For example, to add a new item, do as follows: | ||
| 58 | * </p> | ||
| 59 | * <pre> | ||
| 60 | * getGMOption().add(newItem); | ||
| 61 | * </pre> | ||
| 62 | * | ||
| 63 | * | ||
| 64 | * <p> | ||
| 65 | * Objects of the following type(s) are allowed in the list | ||
| 66 | * {@link String } | ||
| 67 | * </p> | ||
| 68 | * | ||
| 69 | * | ||
| 70 | * @return | ||
| 71 | * The value of the gmOption property. | ||
| 72 | */ | ||
| 73 | public List<String> getGMOption() { | ||
| 74 | if (gmOption == null) { | ||
| 75 | gmOption = new ArrayList<>(); | ||
| 76 | } | ||
| 77 | return this.gmOption; | ||
| 78 | } | ||
| 79 | |||
| 80 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v1/GuessMarket.java b/service/src/main/java/market/guess/service/model/v1/GuessMarket.java new file mode 100644 index 0000000..43f134d --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v1/GuessMarket.java | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v1; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlType; | ||
| 15 | |||
| 16 | |||
| 17 | /** | ||
| 18 | * <p>Java class for anonymous complex type</p>. | ||
| 19 | * | ||
| 20 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 21 | * | ||
| 22 | * <pre>{@code | ||
| 23 | * <complexType> | ||
| 24 | * <complexContent> | ||
| 25 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 26 | * <sequence> | ||
| 27 | * <element ref="{}GM-events"/> | ||
| 28 | * </sequence> | ||
| 29 | * </restriction> | ||
| 30 | * </complexContent> | ||
| 31 | * </complexType> | ||
| 32 | * }</pre> | ||
| 33 | * | ||
| 34 | * | ||
| 35 | */ | ||
| 36 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 37 | @XmlType(name = "", propOrder = { | ||
| 38 | "gmEvents" | ||
| 39 | }) | ||
| 40 | @XmlRootElement(name = "Guess-Market") | ||
| 41 | public class GuessMarket { | ||
| 42 | |||
| 43 | @XmlElement(name = "GM-events", required = true) | ||
| 44 | protected GMEvents gmEvents; | ||
| 45 | |||
| 46 | /** | ||
| 47 | * Gets the value of the gmEvents property. | ||
| 48 | * | ||
| 49 | * @return | ||
| 50 | * possible object is | ||
| 51 | * {@link GMEvents } | ||
| 52 | * | ||
| 53 | */ | ||
| 54 | public GMEvents getGMEvents() { | ||
| 55 | return gmEvents; | ||
| 56 | } | ||
| 57 | |||
| 58 | /** | ||
| 59 | * Sets the value of the gmEvents property. | ||
| 60 | * | ||
| 61 | * @param value | ||
| 62 | * allowed object is | ||
| 63 | * {@link GMEvents } | ||
| 64 | * | ||
| 65 | */ | ||
| 66 | public void setGMEvents(GMEvents value) { | ||
| 67 | this.gmEvents = value; | ||
| 68 | } | ||
| 69 | |||
| 70 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v1/ObjectFactory.java b/service/src/main/java/market/guess/service/model/v1/ObjectFactory.java new file mode 100644 index 0000000..cd43428 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v1/ObjectFactory.java | |||
| @@ -0,0 +1,167 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v1; | ||
| 9 | |||
| 10 | import javax.xml.namespace.QName; | ||
| 11 | import jakarta.xml.bind.JAXBElement; | ||
| 12 | import jakarta.xml.bind.annotation.XmlElementDecl; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRegistry; | ||
| 14 | |||
| 15 | |||
| 16 | /** | ||
| 17 | * This object contains factory methods for each | ||
| 18 | * Java content interface and Java element interface | ||
| 19 | * generated in the market.guess.service.model.v1 package. | ||
| 20 | * <p>An ObjectFactory allows you to programmatically | ||
| 21 | * construct new instances of the Java representation | ||
| 22 | * for XML content. The Java representation of XML | ||
| 23 | * content can consist of schema derived interfaces | ||
| 24 | * and classes representing the binding of schema | ||
| 25 | * type definitions, element declarations and model | ||
| 26 | * groups. Factory methods for each of these are | ||
| 27 | * provided in this class. | ||
| 28 | * | ||
| 29 | */ | ||
| 30 | @XmlRegistry | ||
| 31 | public class ObjectFactory { | ||
| 32 | |||
| 33 | private static final QName _Id_QNAME = new QName("", "id"); | ||
| 34 | private static final QName _Description_QNAME = new QName("", "description"); | ||
| 35 | private static final QName _B_QNAME = new QName("", "b"); | ||
| 36 | private static final QName _GMOption_QNAME = new QName("", "GM-option"); | ||
| 37 | |||
| 38 | /** | ||
| 39 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: market.guess.service.model.v1 | ||
| 40 | * | ||
| 41 | */ | ||
| 42 | public ObjectFactory() { | ||
| 43 | } | ||
| 44 | |||
| 45 | /** | ||
| 46 | * Create an instance of {@link Comision } | ||
| 47 | * | ||
| 48 | * @return | ||
| 49 | * the new instance of {@link Comision } | ||
| 50 | */ | ||
| 51 | public Comision createComision() { | ||
| 52 | return new Comision(); | ||
| 53 | } | ||
| 54 | |||
| 55 | /** | ||
| 56 | * Create an instance of {@link GuessMarket } | ||
| 57 | * | ||
| 58 | * @return | ||
| 59 | * the new instance of {@link GuessMarket } | ||
| 60 | */ | ||
| 61 | public GuessMarket createGuessMarket() { | ||
| 62 | return new GuessMarket(); | ||
| 63 | } | ||
| 64 | |||
| 65 | /** | ||
| 66 | * Create an instance of {@link GMEvents } | ||
| 67 | * | ||
| 68 | * @return | ||
| 69 | * the new instance of {@link GMEvents } | ||
| 70 | */ | ||
| 71 | public GMEvents createGMEvents() { | ||
| 72 | return new GMEvents(); | ||
| 73 | } | ||
| 74 | |||
| 75 | /** | ||
| 76 | * Create an instance of {@link GMEvent } | ||
| 77 | * | ||
| 78 | * @return | ||
| 79 | * the new instance of {@link GMEvent } | ||
| 80 | */ | ||
| 81 | public GMEvent createGMEvent() { | ||
| 82 | return new GMEvent(); | ||
| 83 | } | ||
| 84 | |||
| 85 | /** | ||
| 86 | * Create an instance of {@link GMOptions } | ||
| 87 | * | ||
| 88 | * @return | ||
| 89 | * the new instance of {@link GMOptions } | ||
| 90 | */ | ||
| 91 | public GMOptions createGMOptions() { | ||
| 92 | return new GMOptions(); | ||
| 93 | } | ||
| 94 | |||
| 95 | /** | ||
| 96 | * Create an instance of {@link GMMethod } | ||
| 97 | * | ||
| 98 | * @return | ||
| 99 | * the new instance of {@link GMMethod } | ||
| 100 | */ | ||
| 101 | public GMMethod createGMMethod() { | ||
| 102 | return new GMMethod(); | ||
| 103 | } | ||
| 104 | |||
| 105 | /** | ||
| 106 | * Create an instance of {@link GMLMSR } | ||
| 107 | * | ||
| 108 | * @return | ||
| 109 | * the new instance of {@link GMLMSR } | ||
| 110 | */ | ||
| 111 | public GMLMSR createGMLMSR() { | ||
| 112 | return new GMLMSR(); | ||
| 113 | } | ||
| 114 | |||
| 115 | /** | ||
| 116 | * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 117 | * | ||
| 118 | * @param value | ||
| 119 | * Java instance representing xml element's value. | ||
| 120 | * @return | ||
| 121 | * the new instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 122 | */ | ||
| 123 | @XmlElementDecl(namespace = "", name = "id") | ||
| 124 | public JAXBElement<Integer> createId(Integer value) { | ||
| 125 | return new JAXBElement<>(_Id_QNAME, Integer.class, null, value); | ||
| 126 | } | ||
| 127 | |||
| 128 | /** | ||
| 129 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 130 | * | ||
| 131 | * @param value | ||
| 132 | * Java instance representing xml element's value. | ||
| 133 | * @return | ||
| 134 | * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 135 | */ | ||
| 136 | @XmlElementDecl(namespace = "", name = "description") | ||
| 137 | public JAXBElement<String> createDescription(String value) { | ||
| 138 | return new JAXBElement<>(_Description_QNAME, String.class, null, value); | ||
| 139 | } | ||
| 140 | |||
| 141 | /** | ||
| 142 | * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 143 | * | ||
| 144 | * @param value | ||
| 145 | * Java instance representing xml element's value. | ||
| 146 | * @return | ||
| 147 | * the new instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 148 | */ | ||
| 149 | @XmlElementDecl(namespace = "", name = "b") | ||
| 150 | public JAXBElement<Integer> createB(Integer value) { | ||
| 151 | return new JAXBElement<>(_B_QNAME, Integer.class, null, value); | ||
| 152 | } | ||
| 153 | |||
| 154 | /** | ||
| 155 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 156 | * | ||
| 157 | * @param value | ||
| 158 | * Java instance representing xml element's value. | ||
| 159 | * @return | ||
| 160 | * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 161 | */ | ||
| 162 | @XmlElementDecl(namespace = "", name = "GM-option") | ||
| 163 | public JAXBElement<String> createGMOption(String value) { | ||
| 164 | return new JAXBElement<>(_GMOption_QNAME, String.class, null, value); | ||
| 165 | } | ||
| 166 | |||
| 167 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/Commission.java b/service/src/main/java/market/guess/service/model/v2/Commission.java new file mode 100644 index 0000000..5448ff0 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/Commission.java | |||
| @@ -0,0 +1,94 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAttribute; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlType; | ||
| 15 | import jakarta.xml.bind.annotation.XmlValue; | ||
| 16 | |||
| 17 | |||
| 18 | /** | ||
| 19 | * <p>Java class for anonymous complex type</p>. | ||
| 20 | * | ||
| 21 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 22 | * | ||
| 23 | * <pre>{@code | ||
| 24 | * <complexType> | ||
| 25 | * <simpleContent> | ||
| 26 | * <extension base="<http://www.w3.org/2001/XMLSchema>int"> | ||
| 27 | * <attribute name="type" use="required"> | ||
| 28 | * <simpleType> | ||
| 29 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> | ||
| 30 | * <enumeration value="on-close"/> | ||
| 31 | * <enumeration value="on-purchase"/> | ||
| 32 | * </restriction> | ||
| 33 | * </simpleType> | ||
| 34 | * </attribute> | ||
| 35 | * </extension> | ||
| 36 | * </simpleContent> | ||
| 37 | * </complexType> | ||
| 38 | * }</pre> | ||
| 39 | * | ||
| 40 | * | ||
| 41 | */ | ||
| 42 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 43 | @XmlType(name = "", propOrder = { | ||
| 44 | "value" | ||
| 45 | }) | ||
| 46 | @XmlRootElement(name = "commission") | ||
| 47 | public class Commission { | ||
| 48 | |||
| 49 | @XmlValue | ||
| 50 | protected int value; | ||
| 51 | @XmlAttribute(name = "type", required = true) | ||
| 52 | protected String type; | ||
| 53 | |||
| 54 | /** | ||
| 55 | * Gets the value of the value property. | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | public int getValue() { | ||
| 59 | return value; | ||
| 60 | } | ||
| 61 | |||
| 62 | /** | ||
| 63 | * Sets the value of the value property. | ||
| 64 | * | ||
| 65 | */ | ||
| 66 | public void setValue(int value) { | ||
| 67 | this.value = value; | ||
| 68 | } | ||
| 69 | |||
| 70 | /** | ||
| 71 | * Gets the value of the type property. | ||
| 72 | * | ||
| 73 | * @return | ||
| 74 | * possible object is | ||
| 75 | * {@link String } | ||
| 76 | * | ||
| 77 | */ | ||
| 78 | public String getType() { | ||
| 79 | return type; | ||
| 80 | } | ||
| 81 | |||
| 82 | /** | ||
| 83 | * Sets the value of the type property. | ||
| 84 | * | ||
| 85 | * @param value | ||
| 86 | * allowed object is | ||
| 87 | * {@link String } | ||
| 88 | * | ||
| 89 | */ | ||
| 90 | public void setType(String value) { | ||
| 91 | this.type = value; | ||
| 92 | } | ||
| 93 | |||
| 94 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/Event.java b/service/src/main/java/market/guess/service/model/v2/Event.java new file mode 100644 index 0000000..53ca4ca --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/Event.java | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAttribute; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlType; | ||
| 15 | |||
| 16 | |||
| 17 | /** | ||
| 18 | * <p>Java class for anonymous complex type</p>. | ||
| 19 | * | ||
| 20 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 21 | * | ||
| 22 | * <pre>{@code | ||
| 23 | * <complexType> | ||
| 24 | * <complexContent> | ||
| 25 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 26 | * <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /> | ||
| 27 | * </restriction> | ||
| 28 | * </complexContent> | ||
| 29 | * </complexType> | ||
| 30 | * }</pre> | ||
| 31 | * | ||
| 32 | * | ||
| 33 | */ | ||
| 34 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 35 | @XmlType(name = "") | ||
| 36 | @XmlRootElement(name = "event") | ||
| 37 | public class Event { | ||
| 38 | |||
| 39 | @XmlAttribute(name = "id", required = true) | ||
| 40 | protected int id; | ||
| 41 | |||
| 42 | /** | ||
| 43 | * Gets the value of the id property. | ||
| 44 | * | ||
| 45 | */ | ||
| 46 | public int getId() { | ||
| 47 | return id; | ||
| 48 | } | ||
| 49 | |||
| 50 | /** | ||
| 51 | * Sets the value of the id property. | ||
| 52 | * | ||
| 53 | */ | ||
| 54 | public void setId(int value) { | ||
| 55 | this.id = value; | ||
| 56 | } | ||
| 57 | |||
| 58 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/GMEvent.java b/service/src/main/java/market/guess/service/model/v2/GMEvent.java new file mode 100644 index 0000000..c011c32 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/GMEvent.java | |||
| @@ -0,0 +1,201 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAttribute; | ||
| 13 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 15 | import jakarta.xml.bind.annotation.XmlType; | ||
| 16 | |||
| 17 | |||
| 18 | /** | ||
| 19 | * <p>Java class for anonymous complex type</p>. | ||
| 20 | * | ||
| 21 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 22 | * | ||
| 23 | * <pre>{@code | ||
| 24 | * <complexType> | ||
| 25 | * <complexContent> | ||
| 26 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 27 | * <sequence> | ||
| 28 | * <element ref="{}id"/> | ||
| 29 | * <element ref="{}description"/> | ||
| 30 | * <element ref="{}commission"/> | ||
| 31 | * <element ref="{}GM-options"/> | ||
| 32 | * <element ref="{}GM-method"/> | ||
| 33 | * </sequence> | ||
| 34 | * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> | ||
| 35 | * </restriction> | ||
| 36 | * </complexContent> | ||
| 37 | * </complexType> | ||
| 38 | * }</pre> | ||
| 39 | * | ||
| 40 | * | ||
| 41 | */ | ||
| 42 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 43 | @XmlType(name = "", propOrder = { | ||
| 44 | "id", | ||
| 45 | "description", | ||
| 46 | "commission", | ||
| 47 | "gmOptions", | ||
| 48 | "gmMethod" | ||
| 49 | }) | ||
| 50 | @XmlRootElement(name = "GM-event") | ||
| 51 | public class GMEvent { | ||
| 52 | |||
| 53 | protected int id; | ||
| 54 | @XmlElement(required = true) | ||
| 55 | protected String description; | ||
| 56 | @XmlElement(required = true) | ||
| 57 | protected Commission commission; | ||
| 58 | @XmlElement(name = "GM-options", required = true) | ||
| 59 | protected GMOptions gmOptions; | ||
| 60 | @XmlElement(name = "GM-method", required = true) | ||
| 61 | protected GMMethod gmMethod; | ||
| 62 | @XmlAttribute(name = "name", required = true) | ||
| 63 | protected String name; | ||
| 64 | |||
| 65 | /** | ||
| 66 | * Gets the value of the id property. | ||
| 67 | * | ||
| 68 | */ | ||
| 69 | public int getId() { | ||
| 70 | return id; | ||
| 71 | } | ||
| 72 | |||
| 73 | /** | ||
| 74 | * Sets the value of the id property. | ||
| 75 | * | ||
| 76 | */ | ||
| 77 | public void setId(int value) { | ||
| 78 | this.id = value; | ||
| 79 | } | ||
| 80 | |||
| 81 | /** | ||
| 82 | * Gets the value of the description property. | ||
| 83 | * | ||
| 84 | * @return | ||
| 85 | * possible object is | ||
| 86 | * {@link String } | ||
| 87 | * | ||
| 88 | */ | ||
| 89 | public String getDescription() { | ||
| 90 | return description; | ||
| 91 | } | ||
| 92 | |||
| 93 | /** | ||
| 94 | * Sets the value of the description property. | ||
| 95 | * | ||
| 96 | * @param value | ||
| 97 | * allowed object is | ||
| 98 | * {@link String } | ||
| 99 | * | ||
| 100 | */ | ||
| 101 | public void setDescription(String value) { | ||
| 102 | this.description = value; | ||
| 103 | } | ||
| 104 | |||
| 105 | /** | ||
| 106 | * Gets the value of the commission property. | ||
| 107 | * | ||
| 108 | * @return | ||
| 109 | * possible object is | ||
| 110 | * {@link Commission } | ||
| 111 | * | ||
| 112 | */ | ||
| 113 | public Commission getCommission() { | ||
| 114 | return commission; | ||
| 115 | } | ||
| 116 | |||
| 117 | /** | ||
| 118 | * Sets the value of the commission property. | ||
| 119 | * | ||
| 120 | * @param value | ||
| 121 | * allowed object is | ||
| 122 | * {@link Commission } | ||
| 123 | * | ||
| 124 | */ | ||
| 125 | public void setCommission(Commission value) { | ||
| 126 | this.commission = value; | ||
| 127 | } | ||
| 128 | |||
| 129 | /** | ||
| 130 | * Gets the value of the gmOptions property. | ||
| 131 | * | ||
| 132 | * @return | ||
| 133 | * possible object is | ||
| 134 | * {@link GMOptions } | ||
| 135 | * | ||
| 136 | */ | ||
| 137 | public GMOptions getGMOptions() { | ||
| 138 | return gmOptions; | ||
| 139 | } | ||
| 140 | |||
| 141 | /** | ||
| 142 | * Sets the value of the gmOptions property. | ||
| 143 | * | ||
| 144 | * @param value | ||
| 145 | * allowed object is | ||
| 146 | * {@link GMOptions } | ||
| 147 | * | ||
| 148 | */ | ||
| 149 | public void setGMOptions(GMOptions value) { | ||
| 150 | this.gmOptions = value; | ||
| 151 | } | ||
| 152 | |||
| 153 | /** | ||
| 154 | * Gets the value of the gmMethod property. | ||
| 155 | * | ||
| 156 | * @return | ||
| 157 | * possible object is | ||
| 158 | * {@link GMMethod } | ||
| 159 | * | ||
| 160 | */ | ||
| 161 | public GMMethod getGMMethod() { | ||
| 162 | return gmMethod; | ||
| 163 | } | ||
| 164 | |||
| 165 | /** | ||
| 166 | * Sets the value of the gmMethod property. | ||
| 167 | * | ||
| 168 | * @param value | ||
| 169 | * allowed object is | ||
| 170 | * {@link GMMethod } | ||
| 171 | * | ||
| 172 | */ | ||
| 173 | public void setGMMethod(GMMethod value) { | ||
| 174 | this.gmMethod = value; | ||
| 175 | } | ||
| 176 | |||
| 177 | /** | ||
| 178 | * Gets the value of the name property. | ||
| 179 | * | ||
| 180 | * @return | ||
| 181 | * possible object is | ||
| 182 | * {@link String } | ||
| 183 | * | ||
| 184 | */ | ||
| 185 | public String getName() { | ||
| 186 | return name; | ||
| 187 | } | ||
| 188 | |||
| 189 | /** | ||
| 190 | * Sets the value of the name property. | ||
| 191 | * | ||
| 192 | * @param value | ||
| 193 | * allowed object is | ||
| 194 | * {@link String } | ||
| 195 | * | ||
| 196 | */ | ||
| 197 | public void setName(String value) { | ||
| 198 | this.name = value; | ||
| 199 | } | ||
| 200 | |||
| 201 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/GMEvents.java b/service/src/main/java/market/guess/service/model/v2/GMEvents.java new file mode 100644 index 0000000..61a5473 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/GMEvents.java | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import java.util.ArrayList; | ||
| 11 | import java.util.List; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 13 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 14 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 15 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 16 | import jakarta.xml.bind.annotation.XmlType; | ||
| 17 | |||
| 18 | |||
| 19 | /** | ||
| 20 | * <p>Java class for anonymous complex type</p>. | ||
| 21 | * | ||
| 22 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 23 | * | ||
| 24 | * <pre>{@code | ||
| 25 | * <complexType> | ||
| 26 | * <complexContent> | ||
| 27 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 28 | * <sequence> | ||
| 29 | * <element ref="{}GM-event" maxOccurs="unbounded"/> | ||
| 30 | * </sequence> | ||
| 31 | * </restriction> | ||
| 32 | * </complexContent> | ||
| 33 | * </complexType> | ||
| 34 | * }</pre> | ||
| 35 | * | ||
| 36 | * | ||
| 37 | */ | ||
| 38 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 39 | @XmlType(name = "", propOrder = { | ||
| 40 | "gmEvent" | ||
| 41 | }) | ||
| 42 | @XmlRootElement(name = "GM-events") | ||
| 43 | public class GMEvents { | ||
| 44 | |||
| 45 | @XmlElement(name = "GM-event", required = true) | ||
| 46 | protected List<GMEvent> gmEvent; | ||
| 47 | |||
| 48 | /** | ||
| 49 | * Gets the value of the gmEvent property. | ||
| 50 | * | ||
| 51 | * <p>This accessor method returns a reference to the live list, | ||
| 52 | * not a snapshot. Therefore any modification you make to the | ||
| 53 | * returned list will be present inside the JAXB object. | ||
| 54 | * This is why there is not a <CODE>set</CODE> method for the gmEvent property.</p> | ||
| 55 | * | ||
| 56 | * <p> | ||
| 57 | * For example, to add a new item, do as follows: | ||
| 58 | * </p> | ||
| 59 | * <pre> | ||
| 60 | * getGMEvent().add(newItem); | ||
| 61 | * </pre> | ||
| 62 | * | ||
| 63 | * | ||
| 64 | * <p> | ||
| 65 | * Objects of the following type(s) are allowed in the list | ||
| 66 | * {@link GMEvent } | ||
| 67 | * </p> | ||
| 68 | * | ||
| 69 | * | ||
| 70 | * @return | ||
| 71 | * The value of the gmEvent property. | ||
| 72 | */ | ||
| 73 | public List<GMEvent> getGMEvent() { | ||
| 74 | if (gmEvent == null) { | ||
| 75 | gmEvent = new ArrayList<>(); | ||
| 76 | } | ||
| 77 | return this.gmEvent; | ||
| 78 | } | ||
| 79 | |||
| 80 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/GMLMSR.java b/service/src/main/java/market/guess/service/model/v2/GMLMSR.java new file mode 100644 index 0000000..b299a19 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/GMLMSR.java | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlType; | ||
| 14 | |||
| 15 | |||
| 16 | /** | ||
| 17 | * <p>Java class for anonymous complex type</p>. | ||
| 18 | * | ||
| 19 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 20 | * | ||
| 21 | * <pre>{@code | ||
| 22 | * <complexType> | ||
| 23 | * <complexContent> | ||
| 24 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 25 | * <sequence> | ||
| 26 | * <element ref="{}b"/> | ||
| 27 | * </sequence> | ||
| 28 | * </restriction> | ||
| 29 | * </complexContent> | ||
| 30 | * </complexType> | ||
| 31 | * }</pre> | ||
| 32 | * | ||
| 33 | * | ||
| 34 | */ | ||
| 35 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 36 | @XmlType(name = "", propOrder = { | ||
| 37 | "b" | ||
| 38 | }) | ||
| 39 | @XmlRootElement(name = "GM-LMSR") | ||
| 40 | public class GMLMSR { | ||
| 41 | |||
| 42 | protected int b; | ||
| 43 | |||
| 44 | /** | ||
| 45 | * Gets the value of the b property. | ||
| 46 | * | ||
| 47 | */ | ||
| 48 | public int getB() { | ||
| 49 | return b; | ||
| 50 | } | ||
| 51 | |||
| 52 | /** | ||
| 53 | * Sets the value of the b property. | ||
| 54 | * | ||
| 55 | */ | ||
| 56 | public void setB(int value) { | ||
| 57 | this.b = value; | ||
| 58 | } | ||
| 59 | |||
| 60 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/GMMarketMaker.java b/service/src/main/java/market/guess/service/model/v2/GMMarketMaker.java new file mode 100644 index 0000000..2eb0e6e --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/GMMarketMaker.java | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import java.util.ArrayList; | ||
| 11 | import java.util.List; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 13 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 14 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 15 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 16 | import jakarta.xml.bind.annotation.XmlType; | ||
| 17 | |||
| 18 | |||
| 19 | /** | ||
| 20 | * <p>Java class for anonymous complex type</p>. | ||
| 21 | * | ||
| 22 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 23 | * | ||
| 24 | * <pre>{@code | ||
| 25 | * <complexType> | ||
| 26 | * <complexContent> | ||
| 27 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 28 | * <sequence> | ||
| 29 | * <element ref="{}event" maxOccurs="unbounded"/> | ||
| 30 | * </sequence> | ||
| 31 | * </restriction> | ||
| 32 | * </complexContent> | ||
| 33 | * </complexType> | ||
| 34 | * }</pre> | ||
| 35 | * | ||
| 36 | * | ||
| 37 | */ | ||
| 38 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 39 | @XmlType(name = "", propOrder = { | ||
| 40 | "event" | ||
| 41 | }) | ||
| 42 | @XmlRootElement(name = "GM-market-maker") | ||
| 43 | public class GMMarketMaker { | ||
| 44 | |||
| 45 | @XmlElement(required = true) | ||
| 46 | protected List<Event> event; | ||
| 47 | |||
| 48 | /** | ||
| 49 | * Gets the value of the event property. | ||
| 50 | * | ||
| 51 | * <p>This accessor method returns a reference to the live list, | ||
| 52 | * not a snapshot. Therefore any modification you make to the | ||
| 53 | * returned list will be present inside the JAXB object. | ||
| 54 | * This is why there is not a <CODE>set</CODE> method for the event property.</p> | ||
| 55 | * | ||
| 56 | * <p> | ||
| 57 | * For example, to add a new item, do as follows: | ||
| 58 | * </p> | ||
| 59 | * <pre> | ||
| 60 | * getEvent().add(newItem); | ||
| 61 | * </pre> | ||
| 62 | * | ||
| 63 | * | ||
| 64 | * <p> | ||
| 65 | * Objects of the following type(s) are allowed in the list | ||
| 66 | * {@link Event } | ||
| 67 | * </p> | ||
| 68 | * | ||
| 69 | * | ||
| 70 | * @return | ||
| 71 | * The value of the event property. | ||
| 72 | */ | ||
| 73 | public List<Event> getEvent() { | ||
| 74 | if (event == null) { | ||
| 75 | event = new ArrayList<>(); | ||
| 76 | } | ||
| 77 | return this.event; | ||
| 78 | } | ||
| 79 | |||
| 80 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/GMMethod.java b/service/src/main/java/market/guess/service/model/v2/GMMethod.java new file mode 100644 index 0000000..06338c0 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/GMMethod.java | |||
| @@ -0,0 +1,98 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlType; | ||
| 15 | |||
| 16 | |||
| 17 | /** | ||
| 18 | * <p>Java class for anonymous complex type</p>. | ||
| 19 | * | ||
| 20 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 21 | * | ||
| 22 | * <pre>{@code | ||
| 23 | * <complexType> | ||
| 24 | * <complexContent> | ||
| 25 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 26 | * <choice> | ||
| 27 | * <element ref="{}GM-LMSR"/> | ||
| 28 | * <element ref="{}GM-order-book"/> | ||
| 29 | * </choice> | ||
| 30 | * </restriction> | ||
| 31 | * </complexContent> | ||
| 32 | * </complexType> | ||
| 33 | * }</pre> | ||
| 34 | * | ||
| 35 | * | ||
| 36 | */ | ||
| 37 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 38 | @XmlType(name = "", propOrder = { | ||
| 39 | "gmlmsr", | ||
| 40 | "gmOrderBook" | ||
| 41 | }) | ||
| 42 | @XmlRootElement(name = "GM-method") | ||
| 43 | public class GMMethod { | ||
| 44 | |||
| 45 | @XmlElement(name = "GM-LMSR") | ||
| 46 | protected GMLMSR gmlmsr; | ||
| 47 | @XmlElement(name = "GM-order-book") | ||
| 48 | protected GMOrderBook gmOrderBook; | ||
| 49 | |||
| 50 | /** | ||
| 51 | * Gets the value of the gmlmsr property. | ||
| 52 | * | ||
| 53 | * @return | ||
| 54 | * possible object is | ||
| 55 | * {@link GMLMSR } | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | public GMLMSR getGMLMSR() { | ||
| 59 | return gmlmsr; | ||
| 60 | } | ||
| 61 | |||
| 62 | /** | ||
| 63 | * Sets the value of the gmlmsr property. | ||
| 64 | * | ||
| 65 | * @param value | ||
| 66 | * allowed object is | ||
| 67 | * {@link GMLMSR } | ||
| 68 | * | ||
| 69 | */ | ||
| 70 | public void setGMLMSR(GMLMSR value) { | ||
| 71 | this.gmlmsr = value; | ||
| 72 | } | ||
| 73 | |||
| 74 | /** | ||
| 75 | * Gets the value of the gmOrderBook property. | ||
| 76 | * | ||
| 77 | * @return | ||
| 78 | * possible object is | ||
| 79 | * {@link GMOrderBook } | ||
| 80 | * | ||
| 81 | */ | ||
| 82 | public GMOrderBook getGMOrderBook() { | ||
| 83 | return gmOrderBook; | ||
| 84 | } | ||
| 85 | |||
| 86 | /** | ||
| 87 | * Sets the value of the gmOrderBook property. | ||
| 88 | * | ||
| 89 | * @param value | ||
| 90 | * allowed object is | ||
| 91 | * {@link GMOrderBook } | ||
| 92 | * | ||
| 93 | */ | ||
| 94 | public void setGMOrderBook(GMOrderBook value) { | ||
| 95 | this.gmOrderBook = value; | ||
| 96 | } | ||
| 97 | |||
| 98 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/GMOptions.java b/service/src/main/java/market/guess/service/model/v2/GMOptions.java new file mode 100644 index 0000000..a819656 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/GMOptions.java | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import java.util.ArrayList; | ||
| 11 | import java.util.List; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 13 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 14 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 15 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 16 | import jakarta.xml.bind.annotation.XmlType; | ||
| 17 | |||
| 18 | |||
| 19 | /** | ||
| 20 | * <p>Java class for anonymous complex type</p>. | ||
| 21 | * | ||
| 22 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 23 | * | ||
| 24 | * <pre>{@code | ||
| 25 | * <complexType> | ||
| 26 | * <complexContent> | ||
| 27 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 28 | * <sequence> | ||
| 29 | * <element ref="{}GM-option" maxOccurs="2"/> | ||
| 30 | * </sequence> | ||
| 31 | * </restriction> | ||
| 32 | * </complexContent> | ||
| 33 | * </complexType> | ||
| 34 | * }</pre> | ||
| 35 | * | ||
| 36 | * | ||
| 37 | */ | ||
| 38 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 39 | @XmlType(name = "", propOrder = { | ||
| 40 | "gmOption" | ||
| 41 | }) | ||
| 42 | @XmlRootElement(name = "GM-options") | ||
| 43 | public class GMOptions { | ||
| 44 | |||
| 45 | @XmlElement(name = "GM-option", required = true) | ||
| 46 | protected List<String> gmOption; | ||
| 47 | |||
| 48 | /** | ||
| 49 | * Gets the value of the gmOption property. | ||
| 50 | * | ||
| 51 | * <p>This accessor method returns a reference to the live list, | ||
| 52 | * not a snapshot. Therefore any modification you make to the | ||
| 53 | * returned list will be present inside the JAXB object. | ||
| 54 | * This is why there is not a <CODE>set</CODE> method for the gmOption property.</p> | ||
| 55 | * | ||
| 56 | * <p> | ||
| 57 | * For example, to add a new item, do as follows: | ||
| 58 | * </p> | ||
| 59 | * <pre> | ||
| 60 | * getGMOption().add(newItem); | ||
| 61 | * </pre> | ||
| 62 | * | ||
| 63 | * | ||
| 64 | * <p> | ||
| 65 | * Objects of the following type(s) are allowed in the list | ||
| 66 | * {@link String } | ||
| 67 | * </p> | ||
| 68 | * | ||
| 69 | * | ||
| 70 | * @return | ||
| 71 | * The value of the gmOption property. | ||
| 72 | */ | ||
| 73 | public List<String> getGMOption() { | ||
| 74 | if (gmOption == null) { | ||
| 75 | gmOption = new ArrayList<>(); | ||
| 76 | } | ||
| 77 | return this.gmOption; | ||
| 78 | } | ||
| 79 | |||
| 80 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/GMOrderBook.java b/service/src/main/java/market/guess/service/model/v2/GMOrderBook.java new file mode 100644 index 0000000..f38c707 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/GMOrderBook.java | |||
| @@ -0,0 +1,111 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAttribute; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlType; | ||
| 15 | |||
| 16 | |||
| 17 | /** | ||
| 18 | * <p>Java class for anonymous complex type</p>. | ||
| 19 | * | ||
| 20 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 21 | * | ||
| 22 | * <pre>{@code | ||
| 23 | * <complexType> | ||
| 24 | * <complexContent> | ||
| 25 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 26 | * <attribute name="initial" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /> | ||
| 27 | * <attribute name="d" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /> | ||
| 28 | * <attribute name="allow-mint" use="required"> | ||
| 29 | * <simpleType> | ||
| 30 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> | ||
| 31 | * <enumeration value="false"/> | ||
| 32 | * <enumeration value="true"/> | ||
| 33 | * </restriction> | ||
| 34 | * </simpleType> | ||
| 35 | * </attribute> | ||
| 36 | * </restriction> | ||
| 37 | * </complexContent> | ||
| 38 | * </complexType> | ||
| 39 | * }</pre> | ||
| 40 | * | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 44 | @XmlType(name = "") | ||
| 45 | @XmlRootElement(name = "GM-order-book") | ||
| 46 | public class GMOrderBook { | ||
| 47 | |||
| 48 | @XmlAttribute(name = "initial", required = true) | ||
| 49 | protected int initial; | ||
| 50 | @XmlAttribute(name = "d", required = true) | ||
| 51 | protected int d; | ||
| 52 | @XmlAttribute(name = "allow-mint", required = true) | ||
| 53 | protected String allowMint; | ||
| 54 | |||
| 55 | /** | ||
| 56 | * Gets the value of the initial property. | ||
| 57 | * | ||
| 58 | */ | ||
| 59 | public int getInitial() { | ||
| 60 | return initial; | ||
| 61 | } | ||
| 62 | |||
| 63 | /** | ||
| 64 | * Sets the value of the initial property. | ||
| 65 | * | ||
| 66 | */ | ||
| 67 | public void setInitial(int value) { | ||
| 68 | this.initial = value; | ||
| 69 | } | ||
| 70 | |||
| 71 | /** | ||
| 72 | * Gets the value of the d property. | ||
| 73 | * | ||
| 74 | */ | ||
| 75 | public int getD() { | ||
| 76 | return d; | ||
| 77 | } | ||
| 78 | |||
| 79 | /** | ||
| 80 | * Sets the value of the d property. | ||
| 81 | * | ||
| 82 | */ | ||
| 83 | public void setD(int value) { | ||
| 84 | this.d = value; | ||
| 85 | } | ||
| 86 | |||
| 87 | /** | ||
| 88 | * Gets the value of the allowMint property. | ||
| 89 | * | ||
| 90 | * @return | ||
| 91 | * possible object is | ||
| 92 | * {@link String } | ||
| 93 | * | ||
| 94 | */ | ||
| 95 | public String getAllowMint() { | ||
| 96 | return allowMint; | ||
| 97 | } | ||
| 98 | |||
| 99 | /** | ||
| 100 | * Sets the value of the allowMint property. | ||
| 101 | * | ||
| 102 | * @param value | ||
| 103 | * allowed object is | ||
| 104 | * {@link String } | ||
| 105 | * | ||
| 106 | */ | ||
| 107 | public void setAllowMint(String value) { | ||
| 108 | this.allowMint = value; | ||
| 109 | } | ||
| 110 | |||
| 111 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/GMUser.java b/service/src/main/java/market/guess/service/model/v2/GMUser.java new file mode 100644 index 0000000..85b41f4 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/GMUser.java | |||
| @@ -0,0 +1,118 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAttribute; | ||
| 13 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 15 | import jakarta.xml.bind.annotation.XmlType; | ||
| 16 | |||
| 17 | |||
| 18 | /** | ||
| 19 | * <p>Java class for anonymous complex type</p>. | ||
| 20 | * | ||
| 21 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 22 | * | ||
| 23 | * <pre>{@code | ||
| 24 | * <complexType> | ||
| 25 | * <complexContent> | ||
| 26 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 27 | * <sequence> | ||
| 28 | * <element ref="{}initial-cash"/> | ||
| 29 | * <element ref="{}GM-market-maker" minOccurs="0"/> | ||
| 30 | * </sequence> | ||
| 31 | * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> | ||
| 32 | * </restriction> | ||
| 33 | * </complexContent> | ||
| 34 | * </complexType> | ||
| 35 | * }</pre> | ||
| 36 | * | ||
| 37 | * | ||
| 38 | */ | ||
| 39 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 40 | @XmlType(name = "", propOrder = { | ||
| 41 | "initialCash", | ||
| 42 | "gmMarketMaker" | ||
| 43 | }) | ||
| 44 | @XmlRootElement(name = "GM-user") | ||
| 45 | public class GMUser { | ||
| 46 | |||
| 47 | @XmlElement(name = "initial-cash") | ||
| 48 | protected int initialCash; | ||
| 49 | @XmlElement(name = "GM-market-maker") | ||
| 50 | protected GMMarketMaker gmMarketMaker; | ||
| 51 | @XmlAttribute(name = "name", required = true) | ||
| 52 | protected String name; | ||
| 53 | |||
| 54 | /** | ||
| 55 | * Gets the value of the initialCash property. | ||
| 56 | * | ||
| 57 | */ | ||
| 58 | public int getInitialCash() { | ||
| 59 | return initialCash; | ||
| 60 | } | ||
| 61 | |||
| 62 | /** | ||
| 63 | * Sets the value of the initialCash property. | ||
| 64 | * | ||
| 65 | */ | ||
| 66 | public void setInitialCash(int value) { | ||
| 67 | this.initialCash = value; | ||
| 68 | } | ||
| 69 | |||
| 70 | /** | ||
| 71 | * Gets the value of the gmMarketMaker property. | ||
| 72 | * | ||
| 73 | * @return | ||
| 74 | * possible object is | ||
| 75 | * {@link GMMarketMaker } | ||
| 76 | * | ||
| 77 | */ | ||
| 78 | public GMMarketMaker getGMMarketMaker() { | ||
| 79 | return gmMarketMaker; | ||
| 80 | } | ||
| 81 | |||
| 82 | /** | ||
| 83 | * Sets the value of the gmMarketMaker property. | ||
| 84 | * | ||
| 85 | * @param value | ||
| 86 | * allowed object is | ||
| 87 | * {@link GMMarketMaker } | ||
| 88 | * | ||
| 89 | */ | ||
| 90 | public void setGMMarketMaker(GMMarketMaker value) { | ||
| 91 | this.gmMarketMaker = value; | ||
| 92 | } | ||
| 93 | |||
| 94 | /** | ||
| 95 | * Gets the value of the name property. | ||
| 96 | * | ||
| 97 | * @return | ||
| 98 | * possible object is | ||
| 99 | * {@link String } | ||
| 100 | * | ||
| 101 | */ | ||
| 102 | public String getName() { | ||
| 103 | return name; | ||
| 104 | } | ||
| 105 | |||
| 106 | /** | ||
| 107 | * Sets the value of the name property. | ||
| 108 | * | ||
| 109 | * @param value | ||
| 110 | * allowed object is | ||
| 111 | * {@link String } | ||
| 112 | * | ||
| 113 | */ | ||
| 114 | public void setName(String value) { | ||
| 115 | this.name = value; | ||
| 116 | } | ||
| 117 | |||
| 118 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/GMUsers.java b/service/src/main/java/market/guess/service/model/v2/GMUsers.java new file mode 100644 index 0000000..cfebbc4 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/GMUsers.java | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import java.util.ArrayList; | ||
| 11 | import java.util.List; | ||
| 12 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 13 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 14 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 15 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 16 | import jakarta.xml.bind.annotation.XmlType; | ||
| 17 | |||
| 18 | |||
| 19 | /** | ||
| 20 | * <p>Java class for anonymous complex type</p>. | ||
| 21 | * | ||
| 22 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 23 | * | ||
| 24 | * <pre>{@code | ||
| 25 | * <complexType> | ||
| 26 | * <complexContent> | ||
| 27 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 28 | * <sequence> | ||
| 29 | * <element ref="{}GM-user" maxOccurs="unbounded"/> | ||
| 30 | * </sequence> | ||
| 31 | * </restriction> | ||
| 32 | * </complexContent> | ||
| 33 | * </complexType> | ||
| 34 | * }</pre> | ||
| 35 | * | ||
| 36 | * | ||
| 37 | */ | ||
| 38 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 39 | @XmlType(name = "", propOrder = { | ||
| 40 | "gmUser" | ||
| 41 | }) | ||
| 42 | @XmlRootElement(name = "GM-users") | ||
| 43 | public class GMUsers { | ||
| 44 | |||
| 45 | @XmlElement(name = "GM-user", required = true) | ||
| 46 | protected List<GMUser> gmUser; | ||
| 47 | |||
| 48 | /** | ||
| 49 | * Gets the value of the gmUser property. | ||
| 50 | * | ||
| 51 | * <p>This accessor method returns a reference to the live list, | ||
| 52 | * not a snapshot. Therefore any modification you make to the | ||
| 53 | * returned list will be present inside the JAXB object. | ||
| 54 | * This is why there is not a <CODE>set</CODE> method for the gmUser property.</p> | ||
| 55 | * | ||
| 56 | * <p> | ||
| 57 | * For example, to add a new item, do as follows: | ||
| 58 | * </p> | ||
| 59 | * <pre> | ||
| 60 | * getGMUser().add(newItem); | ||
| 61 | * </pre> | ||
| 62 | * | ||
| 63 | * | ||
| 64 | * <p> | ||
| 65 | * Objects of the following type(s) are allowed in the list | ||
| 66 | * {@link GMUser } | ||
| 67 | * </p> | ||
| 68 | * | ||
| 69 | * | ||
| 70 | * @return | ||
| 71 | * The value of the gmUser property. | ||
| 72 | */ | ||
| 73 | public List<GMUser> getGMUser() { | ||
| 74 | if (gmUser == null) { | ||
| 75 | gmUser = new ArrayList<>(); | ||
| 76 | } | ||
| 77 | return this.gmUser; | ||
| 78 | } | ||
| 79 | |||
| 80 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/GuessMarket.java b/service/src/main/java/market/guess/service/model/v2/GuessMarket.java new file mode 100644 index 0000000..1ce28c8 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/GuessMarket.java | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 12 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlType; | ||
| 15 | |||
| 16 | |||
| 17 | /** | ||
| 18 | * <p>Java class for anonymous complex type</p>. | ||
| 19 | * | ||
| 20 | * <p>The following schema fragment specifies the expected content contained within this class.</p> | ||
| 21 | * | ||
| 22 | * <pre>{@code | ||
| 23 | * <complexType> | ||
| 24 | * <complexContent> | ||
| 25 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 26 | * <all> | ||
| 27 | * <element ref="{}GM-events"/> | ||
| 28 | * <element ref="{}GM-users"/> | ||
| 29 | * </all> | ||
| 30 | * </restriction> | ||
| 31 | * </complexContent> | ||
| 32 | * </complexType> | ||
| 33 | * }</pre> | ||
| 34 | * | ||
| 35 | * | ||
| 36 | */ | ||
| 37 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 38 | @XmlType(name = "", propOrder = { | ||
| 39 | |||
| 40 | }) | ||
| 41 | @XmlRootElement(name = "Guess-Market") | ||
| 42 | public class GuessMarket { | ||
| 43 | |||
| 44 | @XmlElement(name = "GM-events", required = true) | ||
| 45 | protected GMEvents gmEvents; | ||
| 46 | @XmlElement(name = "GM-users", required = true) | ||
| 47 | protected GMUsers gmUsers; | ||
| 48 | |||
| 49 | /** | ||
| 50 | * Gets the value of the gmEvents property. | ||
| 51 | * | ||
| 52 | * @return | ||
| 53 | * possible object is | ||
| 54 | * {@link GMEvents } | ||
| 55 | * | ||
| 56 | */ | ||
| 57 | public GMEvents getGMEvents() { | ||
| 58 | return gmEvents; | ||
| 59 | } | ||
| 60 | |||
| 61 | /** | ||
| 62 | * Sets the value of the gmEvents property. | ||
| 63 | * | ||
| 64 | * @param value | ||
| 65 | * allowed object is | ||
| 66 | * {@link GMEvents } | ||
| 67 | * | ||
| 68 | */ | ||
| 69 | public void setGMEvents(GMEvents value) { | ||
| 70 | this.gmEvents = value; | ||
| 71 | } | ||
| 72 | |||
| 73 | /** | ||
| 74 | * Gets the value of the gmUsers property. | ||
| 75 | * | ||
| 76 | * @return | ||
| 77 | * possible object is | ||
| 78 | * {@link GMUsers } | ||
| 79 | * | ||
| 80 | */ | ||
| 81 | public GMUsers getGMUsers() { | ||
| 82 | return gmUsers; | ||
| 83 | } | ||
| 84 | |||
| 85 | /** | ||
| 86 | * Sets the value of the gmUsers property. | ||
| 87 | * | ||
| 88 | * @param value | ||
| 89 | * allowed object is | ||
| 90 | * {@link GMUsers } | ||
| 91 | * | ||
| 92 | */ | ||
| 93 | public void setGMUsers(GMUsers value) { | ||
| 94 | this.gmUsers = value; | ||
| 95 | } | ||
| 96 | |||
| 97 | } | ||
diff --git a/service/src/main/java/market/guess/service/model/v2/ObjectFactory.java b/service/src/main/java/market/guess/service/model/v2/ObjectFactory.java new file mode 100644 index 0000000..7f0fff9 --- /dev/null +++ b/service/src/main/java/market/guess/service/model/v2/ObjectFactory.java | |||
| @@ -0,0 +1,231 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | |||
| 8 | package market.guess.service.model.v2; | ||
| 9 | |||
| 10 | import javax.xml.namespace.QName; | ||
| 11 | import jakarta.xml.bind.JAXBElement; | ||
| 12 | import jakarta.xml.bind.annotation.XmlElementDecl; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRegistry; | ||
| 14 | |||
| 15 | |||
| 16 | /** | ||
| 17 | * This object contains factory methods for each | ||
| 18 | * Java content interface and Java element interface | ||
| 19 | * generated in the market.guess.service.model.v2 package. | ||
| 20 | * <p>An ObjectFactory allows you to programmatically | ||
| 21 | * construct new instances of the Java representation | ||
| 22 | * for XML content. The Java representation of XML | ||
| 23 | * content can consist of schema derived interfaces | ||
| 24 | * and classes representing the binding of schema | ||
| 25 | * type definitions, element declarations and model | ||
| 26 | * groups. Factory methods for each of these are | ||
| 27 | * provided in this class. | ||
| 28 | * | ||
| 29 | */ | ||
| 30 | @XmlRegistry | ||
| 31 | public class ObjectFactory { | ||
| 32 | |||
| 33 | private static final QName _InitialCash_QNAME = new QName("", "initial-cash"); | ||
| 34 | private static final QName _Id_QNAME = new QName("", "id"); | ||
| 35 | private static final QName _Description_QNAME = new QName("", "description"); | ||
| 36 | private static final QName _B_QNAME = new QName("", "b"); | ||
| 37 | private static final QName _GMOption_QNAME = new QName("", "GM-option"); | ||
| 38 | |||
| 39 | /** | ||
| 40 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: market.guess.service.model.v2 | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | public ObjectFactory() { | ||
| 44 | } | ||
| 45 | |||
| 46 | /** | ||
| 47 | * Create an instance of {@link Event } | ||
| 48 | * | ||
| 49 | * @return | ||
| 50 | * the new instance of {@link Event } | ||
| 51 | */ | ||
| 52 | public Event createEvent() { | ||
| 53 | return new Event(); | ||
| 54 | } | ||
| 55 | |||
| 56 | /** | ||
| 57 | * Create an instance of {@link Commission } | ||
| 58 | * | ||
| 59 | * @return | ||
| 60 | * the new instance of {@link Commission } | ||
| 61 | */ | ||
| 62 | public Commission createCommission() { | ||
| 63 | return new Commission(); | ||
| 64 | } | ||
| 65 | |||
| 66 | /** | ||
| 67 | * Create an instance of {@link GuessMarket } | ||
| 68 | * | ||
| 69 | * @return | ||
| 70 | * the new instance of {@link GuessMarket } | ||
| 71 | */ | ||
| 72 | public GuessMarket createGuessMarket() { | ||
| 73 | return new GuessMarket(); | ||
| 74 | } | ||
| 75 | |||
| 76 | /** | ||
| 77 | * Create an instance of {@link GMEvents } | ||
| 78 | * | ||
| 79 | * @return | ||
| 80 | * the new instance of {@link GMEvents } | ||
| 81 | */ | ||
| 82 | public GMEvents createGMEvents() { | ||
| 83 | return new GMEvents(); | ||
| 84 | } | ||
| 85 | |||
| 86 | /** | ||
| 87 | * Create an instance of {@link GMEvent } | ||
| 88 | * | ||
| 89 | * @return | ||
| 90 | * the new instance of {@link GMEvent } | ||
| 91 | */ | ||
| 92 | public GMEvent createGMEvent() { | ||
| 93 | return new GMEvent(); | ||
| 94 | } | ||
| 95 | |||
| 96 | /** | ||
| 97 | * Create an instance of {@link GMOptions } | ||
| 98 | * | ||
| 99 | * @return | ||
| 100 | * the new instance of {@link GMOptions } | ||
| 101 | */ | ||
| 102 | public GMOptions createGMOptions() { | ||
| 103 | return new GMOptions(); | ||
| 104 | } | ||
| 105 | |||
| 106 | /** | ||
| 107 | * Create an instance of {@link GMMethod } | ||
| 108 | * | ||
| 109 | * @return | ||
| 110 | * the new instance of {@link GMMethod } | ||
| 111 | */ | ||
| 112 | public GMMethod createGMMethod() { | ||
| 113 | return new GMMethod(); | ||
| 114 | } | ||
| 115 | |||
| 116 | /** | ||
| 117 | * Create an instance of {@link GMLMSR } | ||
| 118 | * | ||
| 119 | * @return | ||
| 120 | * the new instance of {@link GMLMSR } | ||
| 121 | */ | ||
| 122 | public GMLMSR createGMLMSR() { | ||
| 123 | return new GMLMSR(); | ||
| 124 | } | ||
| 125 | |||
| 126 | /** | ||
| 127 | * Create an instance of {@link GMOrderBook } | ||
| 128 | * | ||
| 129 | * @return | ||
| 130 | * the new instance of {@link GMOrderBook } | ||
| 131 | */ | ||
| 132 | public GMOrderBook createGMOrderBook() { | ||
| 133 | return new GMOrderBook(); | ||
| 134 | } | ||
| 135 | |||
| 136 | /** | ||
| 137 | * Create an instance of {@link GMUsers } | ||
| 138 | * | ||
| 139 | * @return | ||
| 140 | * the new instance of {@link GMUsers } | ||
| 141 | */ | ||
| 142 | public GMUsers createGMUsers() { | ||
| 143 | return new GMUsers(); | ||
| 144 | } | ||
| 145 | |||
| 146 | /** | ||
| 147 | * Create an instance of {@link GMUser } | ||
| 148 | * | ||
| 149 | * @return | ||
| 150 | * the new instance of {@link GMUser } | ||
| 151 | */ | ||
| 152 | public GMUser createGMUser() { | ||
| 153 | return new GMUser(); | ||
| 154 | } | ||
| 155 | |||
| 156 | /** | ||
| 157 | * Create an instance of {@link GMMarketMaker } | ||
| 158 | * | ||
| 159 | * @return | ||
| 160 | * the new instance of {@link GMMarketMaker } | ||
| 161 | */ | ||
| 162 | public GMMarketMaker createGMMarketMaker() { | ||
| 163 | return new GMMarketMaker(); | ||
| 164 | } | ||
| 165 | |||
| 166 | /** | ||
| 167 | * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 168 | * | ||
| 169 | * @param value | ||
| 170 | * Java instance representing xml element's value. | ||
| 171 | * @return | ||
| 172 | * the new instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 173 | */ | ||
| 174 | @XmlElementDecl(namespace = "", name = "initial-cash") | ||
| 175 | public JAXBElement<Integer> createInitialCash(Integer value) { | ||
| 176 | return new JAXBElement<>(_InitialCash_QNAME, Integer.class, null, value); | ||
| 177 | } | ||
| 178 | |||
| 179 | /** | ||
| 180 | * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 181 | * | ||
| 182 | * @param value | ||
| 183 | * Java instance representing xml element's value. | ||
| 184 | * @return | ||
| 185 | * the new instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 186 | */ | ||
| 187 | @XmlElementDecl(namespace = "", name = "id") | ||
| 188 | public JAXBElement<Integer> createId(Integer value) { | ||
| 189 | return new JAXBElement<>(_Id_QNAME, Integer.class, null, value); | ||
| 190 | } | ||
| 191 | |||
| 192 | /** | ||
| 193 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 194 | * | ||
| 195 | * @param value | ||
| 196 | * Java instance representing xml element's value. | ||
| 197 | * @return | ||
| 198 | * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 199 | */ | ||
| 200 | @XmlElementDecl(namespace = "", name = "description") | ||
| 201 | public JAXBElement<String> createDescription(String value) { | ||
| 202 | return new JAXBElement<>(_Description_QNAME, String.class, null, value); | ||
| 203 | } | ||
| 204 | |||
| 205 | /** | ||
| 206 | * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 207 | * | ||
| 208 | * @param value | ||
| 209 | * Java instance representing xml element's value. | ||
| 210 | * @return | ||
| 211 | * the new instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 212 | */ | ||
| 213 | @XmlElementDecl(namespace = "", name = "b") | ||
| 214 | public JAXBElement<Integer> createB(Integer value) { | ||
| 215 | return new JAXBElement<>(_B_QNAME, Integer.class, null, value); | ||
| 216 | } | ||
| 217 | |||
| 218 | /** | ||
| 219 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 220 | * | ||
| 221 | * @param value | ||
| 222 | * Java instance representing xml element's value. | ||
| 223 | * @return | ||
| 224 | * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 225 | */ | ||
| 226 | @XmlElementDecl(namespace = "", name = "GM-option") | ||
| 227 | public JAXBElement<String> createGMOption(String value) { | ||
| 228 | return new JAXBElement<>(_GMOption_QNAME, String.class, null, value); | ||
| 229 | } | ||
| 230 | |||
| 231 | } | ||
diff --git a/service/src/main/java/market/guess/service/repositories/EventRepository.java b/service/src/main/java/market/guess/service/repository/EventRepository.java index 7794c99..506949f 100644 --- a/service/src/main/java/market/guess/service/repositories/EventRepository.java +++ b/service/src/main/java/market/guess/service/repository/EventRepository.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package market.guess.service.repositories; | 1 | package market.guess.service.repository; |
| 2 | 2 | ||
| 3 | import market.guess.service.domain.Event; | 3 | import market.guess.service.domain.Event; |
| 4 | 4 | ||
diff --git a/service/src/main/java/market/guess/service/repositories/UserRepository.java b/service/src/main/java/market/guess/service/repository/UserRepository.java index 992a8b3..aafdc98 100644 --- a/service/src/main/java/market/guess/service/repositories/UserRepository.java +++ b/service/src/main/java/market/guess/service/repository/UserRepository.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package market.guess.service.repositories; | 1 | package market.guess.service.repository; |
| 2 | 2 | ||
| 3 | import market.guess.service.domain.User; | 3 | import market.guess.service.domain.User; |
| 4 | 4 | ||