-
Notifications
You must be signed in to change notification settings - Fork 4
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
66 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
src/Sportradar.Mbs.Sdk/Entities/Request/MaxStakeRequest.cs
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,19 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Sportradar.Mbs.Sdk.Entities.Request; | ||
|
||
/// <summary> | ||
/// Represents a max stake request. | ||
/// </summary> | ||
public class MaxStakeRequest : ContentRequestBase | ||
{ | ||
[JsonInclude] | ||
[JsonPropertyName("type")] | ||
private string Type => "max-stake"; | ||
|
||
/// <summary> | ||
/// Gets or sets the ticket request. | ||
/// </summary> | ||
[JsonPropertyName("ticket")] | ||
public TicketRequest? Ticket { get; set; } | ||
} |
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
32 changes: 32 additions & 0 deletions
32
src/Sportradar.Mbs.Sdk/Entities/Response/MaxStakeResponse.cs
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,32 @@ | ||
using System.Text.Json.Serialization; | ||
using Sportradar.Mbs.Sdk.Entities.Common; | ||
|
||
namespace Sportradar.Mbs.Sdk.Entities.Response; | ||
|
||
/// <summary> | ||
/// Represents the response received from max stake API. | ||
/// </summary> | ||
public class MaxStakeResponse : ContentResponseBase | ||
{ | ||
[JsonInclude] | ||
[JsonPropertyName("type")] | ||
private string Type => "max-stake-reply"; | ||
|
||
/// <summary> | ||
/// Gets or sets the code of the max stake response. | ||
/// </summary> | ||
[JsonPropertyName("code")] | ||
public int Code { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the bets associated with the max stake response. | ||
/// </summary> | ||
[JsonPropertyName("bets")] | ||
public Bet[]? Bets { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the message of the max stake response. | ||
/// </summary> | ||
[JsonPropertyName("message")] | ||
public String? Message { get; set; } | ||
} |
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