forked from harveysburger/pinnaclewrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGetLineResponse.cs
48 lines (35 loc) · 1.72 KB
/
GetLineResponse.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using Newtonsoft.Json;
using PinnacleWrapper.Enums;
namespace PinnacleWrapper.Data
{
public class GetLineResponse
{
[JsonProperty(PropertyName = "status")]
public GetLineResponseStatus Status; // if the value is NOT_EXISTS, then this will be the only parameter in the response. All other params would be empty.
[JsonProperty(PropertyName = "price")]
public decimal? Price;
[JsonProperty(PropertyName = "lineId")]
public int? LineId;
[JsonProperty(PropertyName = "altLineId")]
public int? AltLineId; // This would be needed to place the bet if the handicap is on alternate line, otherwise it will not be in the response.
[JsonProperty(PropertyName = "team1Score")]
public int? Team1Score; // Soccer only
[JsonProperty(PropertyName = "team2Score")]
public int? Team2Score; // Soccer only
[JsonProperty(PropertyName = "team1RedCards")]
public int? Team1RedCards; // Soccer only
[JsonProperty(PropertyName = "team2RedCards")]
public int? Team2RedCards; // Soccer only
[JsonProperty(PropertyName = "maxRiskStake")]
public decimal? MaxRiskStake;
[JsonProperty(PropertyName = "minRiskStake")]
public decimal? MinRiskStake;
[JsonProperty(PropertyName = "maxWinStake")]
public decimal? MaxWinStake;
[JsonProperty(PropertyName = "minWinStake")]
public decimal? MinWinStake;
[JsonProperty(PropertyName = "effectiveAsOf")]
public DateTime? EffectiveAsOf; // Line is effective as of this date and time
}
}