-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
253 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
src/sdk/src/main/java/com/sportradar/mbs/sdk/entities/request/MaxStakeRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package com.sportradar.mbs.sdk.entities.request; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Represents a max stake request. | ||
*/ | ||
public class MaxStakeRequest extends ContentRequest { | ||
|
||
@JsonProperty("ticket") | ||
private TicketRequest ticket; | ||
|
||
/** | ||
* Gets the ticket for the request. | ||
* | ||
* @return The ticket for the request. | ||
*/ | ||
public TicketRequest getTicket() { | ||
return this.ticket; | ||
} | ||
|
||
/** | ||
* Sets the ticket for the request. | ||
* | ||
* @param value The ticket for the request. | ||
*/ | ||
public void setTicket(TicketRequest value) { | ||
this.ticket = value; | ||
} | ||
|
||
|
||
/** | ||
* Creates a new instance of the MaxStakeRequest.Builder class. | ||
* | ||
* @return A new instance of the MaxStakeRequest.Builder class. | ||
*/ | ||
public static Builder newBuilder() { | ||
return new Builder(); | ||
} | ||
|
||
/** | ||
* Builder class for creating instances of the MaxStakeRequest class. | ||
*/ | ||
public static class Builder { | ||
|
||
private final MaxStakeRequest instance = new MaxStakeRequest(); | ||
|
||
private Builder() { | ||
} | ||
|
||
/** | ||
* Builds the MaxStakeRequest instance. | ||
* | ||
* @return The built MaxStakeRequest instance. | ||
*/ | ||
public MaxStakeRequest build() { | ||
return this.instance; | ||
} | ||
|
||
/** | ||
* Sets the ticket for the request. | ||
* | ||
* @param value The ticket for the request. | ||
* @return The Builder instance. | ||
*/ | ||
public Builder setTicket(TicketRequest value) { | ||
this.instance.setTicket(value); | ||
return this; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
133 changes: 133 additions & 0 deletions
133
src/sdk/src/main/java/com/sportradar/mbs/sdk/entities/response/MaxStakeResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
package com.sportradar.mbs.sdk.entities.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.sportradar.mbs.sdk.entities.common.Bet; | ||
|
||
/** | ||
* Represents a response for max stake. | ||
*/ | ||
public class MaxStakeResponse extends ContentResponse { | ||
|
||
@JsonProperty("code") | ||
private int code; | ||
@JsonProperty("bets") | ||
private Bet[] bets; | ||
@JsonProperty("message") | ||
private String message; | ||
|
||
/** | ||
* Gets the code of the response. | ||
* | ||
* @return The code of the response. | ||
*/ | ||
public int getCode() { | ||
return this.code; | ||
} | ||
|
||
/** | ||
* Sets the code of the response. | ||
* | ||
* @param value The code of the response. | ||
*/ | ||
public void setCode(int value) { | ||
this.code = value; | ||
} | ||
|
||
/** | ||
* Gets bets. | ||
* | ||
* @return bets. | ||
*/ | ||
public Bet[] getBets() { | ||
return this.bets; | ||
} | ||
|
||
/** | ||
* Sets bets. | ||
* | ||
* @param value bets. | ||
*/ | ||
public void setBets(Bet[] value) { | ||
this.bets = value; | ||
} | ||
|
||
/** | ||
* Gets the message. | ||
* | ||
* @return The message. | ||
*/ | ||
public String getMessage() { | ||
return this.message; | ||
} | ||
|
||
/** | ||
* Sets the message. | ||
* | ||
* @param value The message. | ||
*/ | ||
public void setMessage(String value) { | ||
this.message = value; | ||
} | ||
|
||
/** | ||
* Creates a new instance of the MaxStakeResponse.Builder class. | ||
* | ||
* @return A new instance of the MaxStakeResponse.Builder class. | ||
*/ | ||
public static Builder newBuilder() { | ||
return new Builder(); | ||
} | ||
|
||
/** | ||
* Represents a builder for creating instances of the MaxStakeResponse class. | ||
*/ | ||
public static class Builder { | ||
|
||
private final MaxStakeResponse instance = new MaxStakeResponse(); | ||
|
||
private Builder() { | ||
} | ||
|
||
/** | ||
* Builds and returns the MaxStakeResponse instance. | ||
* | ||
* @return The MaxStakeResponse instance. | ||
*/ | ||
public MaxStakeResponse build() { | ||
return this.instance; | ||
} | ||
|
||
/** | ||
* Sets the code of the response. | ||
* | ||
* @param value The code of the response. | ||
* @return The builder instance. | ||
*/ | ||
public Builder setCode(int value) { | ||
this.instance.setCode(value); | ||
return this; | ||
} | ||
|
||
/** | ||
* Sets bets. | ||
* | ||
* @param value Bets. | ||
* @return The builder instance. | ||
*/ | ||
public Builder setBets(Bet... value) { | ||
this.instance.setBets(value); | ||
return this; | ||
} | ||
|
||
/** | ||
* Sets the message. | ||
* | ||
* @param value The message. | ||
* @return The builder instance. | ||
*/ | ||
public Builder setMessage(String value) { | ||
this.instance.setMessage(value); | ||
return this; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters