Skip to content

Commit 7c04a12

Browse files
committed
additional odds formats
1 parent 4586b8c commit 7c04a12

File tree

8 files changed

+448
-21
lines changed

8 files changed

+448
-21
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
package com.sportradar.mbs.sdk.entities.odds;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
import java.math.BigInteger;
6+
7+
/**
8+
* Represents fractional odds.
9+
*/
10+
public class FractionalOdds extends Odds {
11+
12+
@JsonProperty("numerator")
13+
private BigInteger numerator;
14+
@JsonProperty("denominator")
15+
private BigInteger denominator;
16+
17+
/**
18+
* Creates a new instance of the FractionalOdds.Builder class.
19+
*
20+
* @return A new instance of the FractionalOdds.Builder class.
21+
*/
22+
public static Builder newBuilder() {
23+
return new Builder();
24+
}
25+
26+
/**
27+
* Gets the value of the numerator (top, first part) of the fractional odds.
28+
*
29+
* @return The value of the numerator.
30+
*/
31+
public BigInteger getNumerator() {
32+
return this.numerator;
33+
}
34+
35+
/**
36+
* Sets the value of the numerator (top, first part) of the fractional odds.
37+
*
38+
* @param value The value of the decimal odds.
39+
*/
40+
public void setNumerator(BigInteger value) {
41+
this.numerator = value;
42+
}
43+
44+
/**
45+
* Gets the value of the denominator (bottom, last part) of the fractional odds.
46+
*
47+
* @return The value of the denominator.
48+
*/
49+
public BigInteger getDenominator() {
50+
return this.denominator;
51+
}
52+
53+
/**
54+
* Sets the value of the denominator (bottom, last part) of the fractional odds.
55+
*
56+
* @param value The value of the decimal odds.
57+
*/
58+
public void setDenominator(BigInteger value) {
59+
this.denominator = value;
60+
}
61+
62+
public static class Builder {
63+
64+
private final FractionalOdds instance = new FractionalOdds();
65+
66+
private Builder() {
67+
}
68+
69+
/**
70+
* Builds and returns the FractionalOdds instance.
71+
*
72+
* @return The built FractionalOdds instance.
73+
*/
74+
public FractionalOdds build() {
75+
return this.instance;
76+
}
77+
78+
/**
79+
* Sets the value of the denominator (bottom, last part) of the fractional odds.
80+
*
81+
* @param value The value of the denominator (bottom, last part) of the fractional odds.
82+
* @return The FractionalOdds.Builder instance.
83+
*/
84+
public Builder setNumerator(BigInteger value) {
85+
this.instance.setNumerator(value);
86+
return this;
87+
}
88+
89+
/**
90+
* Sets the value of the denominator (bottom, last part) of the fractional odds.
91+
*
92+
* @param value The value of the denominator (bottom, last part) of the fractional odds.
93+
* @return The FractionalOdds.Builder instance.
94+
*/
95+
public Builder setDenominator(BigInteger value) {
96+
this.instance.setDenominator(value);
97+
return this;
98+
}
99+
}
100+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
package com.sportradar.mbs.sdk.entities.odds;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
import java.math.BigDecimal;
6+
7+
/**
8+
* Represents hong kong odds.
9+
*/
10+
public class HongKongOdds extends Odds {
11+
12+
@JsonProperty("value")
13+
private BigDecimal value;
14+
15+
/**
16+
* Creates a new instance of the HongKongOdds.Builder class.
17+
*
18+
* @return A new instance of the HongKongOdds.Builder class.
19+
*/
20+
public static Builder newBuilder() {
21+
return new Builder();
22+
}
23+
24+
/**
25+
* Gets the value of the hong kong odds.
26+
*
27+
* @return The value of the hong kong odds.
28+
*/
29+
public BigDecimal getValue() {
30+
return this.value;
31+
}
32+
33+
/**
34+
* Sets the value of the hong kong odds.
35+
*
36+
* @param value The value of the hong kong odds.
37+
*/
38+
public void setValue(BigDecimal value) {
39+
this.value = value;
40+
}
41+
42+
public static class Builder {
43+
44+
private final HongKongOdds instance = new HongKongOdds();
45+
46+
private Builder() {
47+
}
48+
49+
/**
50+
* Builds and returns the HongKongOdds instance.
51+
*
52+
* @return The built HongKongOdds instance.
53+
*/
54+
public HongKongOdds build() {
55+
return this.instance;
56+
}
57+
58+
/**
59+
* Sets the value of the hong kong odds.
60+
*
61+
* @param value The value of the hong kong odds.
62+
* @return The HongKongOdds.Builder instance.
63+
*/
64+
public Builder setValue(BigDecimal value) {
65+
this.instance.setValue(value);
66+
return this;
67+
}
68+
}
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
package com.sportradar.mbs.sdk.entities.odds;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
import java.math.BigDecimal;
6+
7+
/**
8+
* Represents indonesian odds.
9+
*/
10+
public class IndonesianOdds extends Odds {
11+
12+
@JsonProperty("value")
13+
private BigDecimal value;
14+
15+
/**
16+
* Creates a new instance of the IndonesianOdds.Builder class.
17+
*
18+
* @return A new instance of the IndonesianOdds.Builder class.
19+
*/
20+
public static Builder newBuilder() {
21+
return new Builder();
22+
}
23+
24+
/**
25+
* Gets the value of the indonesian odds.
26+
*
27+
* @return The value of the indonesian odds.
28+
*/
29+
public BigDecimal getValue() {
30+
return this.value;
31+
}
32+
33+
/**
34+
* Sets the value of the indonesian odds.
35+
*
36+
* @param value The value of the indonesian odds.
37+
*/
38+
public void setValue(BigDecimal value) {
39+
this.value = value;
40+
}
41+
42+
public static class Builder {
43+
44+
private final IndonesianOdds instance = new IndonesianOdds();
45+
46+
private Builder() {
47+
}
48+
49+
/**
50+
* Builds and returns the IndonesianOdds instance.
51+
*
52+
* @return The built IndonesianOdds instance.
53+
*/
54+
public IndonesianOdds build() {
55+
return this.instance;
56+
}
57+
58+
/**
59+
* Sets the value of the indonesian odds.
60+
*
61+
* @param value The value of the indonesian odds.
62+
* @return The IndonesianOdds.Builder instance.
63+
*/
64+
public Builder setValue(BigDecimal value) {
65+
this.instance.setValue(value);
66+
return this;
67+
}
68+
}
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
package com.sportradar.mbs.sdk.entities.odds;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
import java.math.BigDecimal;
6+
7+
/**
8+
* Represents malay odds.
9+
*/
10+
public class MalayOdds extends Odds {
11+
12+
@JsonProperty("value")
13+
private BigDecimal value;
14+
15+
/**
16+
* Creates a new instance of the MalayOdds.Builder class.
17+
*
18+
* @return A new instance of the MalayOdds.Builder class.
19+
*/
20+
public static Builder newBuilder() {
21+
return new Builder();
22+
}
23+
24+
/**
25+
* Gets the value of the malay odds.
26+
*
27+
* @return The value of the malay odds.
28+
*/
29+
public BigDecimal getValue() {
30+
return this.value;
31+
}
32+
33+
/**
34+
* Sets the value of the malay odds.
35+
*
36+
* @param value The value of the malay odds.
37+
*/
38+
public void setValue(BigDecimal value) {
39+
this.value = value;
40+
}
41+
42+
public static class Builder {
43+
44+
private final MalayOdds instance = new MalayOdds();
45+
46+
private Builder() {
47+
}
48+
49+
/**
50+
* Builds and returns the MalayOdds instance.
51+
*
52+
* @return The built MalayOdds instance.
53+
*/
54+
public MalayOdds build() {
55+
return this.instance;
56+
}
57+
58+
/**
59+
* Sets the value of the malay odds.
60+
*
61+
* @param value The value of the malay odds.
62+
* @return The MalayOdds.Builder instance.
63+
*/
64+
public Builder setValue(BigDecimal value) {
65+
this.instance.setValue(value);
66+
return this;
67+
}
68+
}
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
package com.sportradar.mbs.sdk.entities.odds;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
import java.math.BigInteger;
6+
7+
/**
8+
* Represents moneyline (american) odds.
9+
*/
10+
public class MoneylineOdds extends Odds {
11+
12+
@JsonProperty("value")
13+
private BigInteger value;
14+
15+
/**
16+
* Creates a new instance of the MoneylineOdds.Builder class.
17+
*
18+
* @return A new instance of the MoneylineOdds.Builder class.
19+
*/
20+
public static Builder newBuilder() {
21+
return new Builder();
22+
}
23+
24+
/**
25+
* Gets the value of the moneyline odds.
26+
*
27+
* @return The value of the moneyline odds.
28+
*/
29+
public BigInteger getValue() {
30+
return this.value;
31+
}
32+
33+
/**
34+
* Sets the value of the moneyline odds.
35+
*
36+
* @param value The value of the moneyline odds.
37+
*/
38+
public void setValue(BigInteger value) {
39+
this.value = value;
40+
}
41+
42+
public static class Builder {
43+
44+
private final MoneylineOdds instance = new MoneylineOdds();
45+
46+
private Builder() {
47+
}
48+
49+
/**
50+
* Builds and returns the MoneylineOdds instance.
51+
*
52+
* @return The built MoneylineOdds instance.
53+
*/
54+
public MoneylineOdds build() {
55+
return this.instance;
56+
}
57+
58+
/**
59+
* Sets the value of the moneyline odds.
60+
*
61+
* @param value The value of the moneyline odds.
62+
* @return The MoneylineOdds.Builder instance.
63+
*/
64+
public Builder setValue(BigInteger value) {
65+
this.instance.setValue(value);
66+
return this;
67+
}
68+
}
69+
}

0 commit comments

Comments
 (0)