-
Notifications
You must be signed in to change notification settings - Fork 0
/
templates.go
101 lines (93 loc) · 2.37 KB
/
templates.go
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package yfquery
const (
addDropTransaction = `
<fantasy_content>
<transaction>
<type>add/drop</type>
<players>
<player>
<player_key>%s</player_key>
<transaction_data>
<type>add</type>
<destination_team_key>%s</destination_team_key>
</transaction_data>
</player>
<player>
<player_key>%s</player_key>
<transaction_data>
<type>drop</type>
<source_team_key>%s</source_team_key>
</transaction_data>
</player>
</players>
</transaction>
</fantasy_content>`
addTransaction = `
<fantasy_content>
<transaction>
<type>add</type>
<player>
<player_key>%s</player_key>
<transaction_data>
<type>add</type>
<destination_team_key>%s</destination_team_key>
</transaction_data>
</player>
</transaction>
</fantasy_content>`
dropTransaction = `
<fantasy_content>
<transaction>
<type>drop</type>
<player>
<player_key>%s</player_key>
<transaction_data>
<type>drop</type>
<source_team_key>%s</source_team_key>
</transaction_data>
</player>
</transaction>
</fantasy_content>`
updateWaiverPriorFAABTransaction = `
<fantasy_content>
<transaction>
<transaction_key>%s</transaction_key>
<type>waiver</type>
<waiver_priority>%d</waiver_priority>
<faab_bid>%d</faab_bid>
</transaction>
</fantasy_content>`
updateWaiverPriorTransaction = `
<fantasy_content>
<transaction>
<transaction_key>%s</transaction_key>
<type>waiver</type>
<waiver_priority>%d</waiver_priority>
</transaction>
</fantasy_content>`
updateWaiverFAABTransaction = `
<fantasy_content>
<transaction>
<transaction_key>%s</transaction_key>
<type>waiver</type>
<faab_bid>%d</faab_bid>
</transaction>
</fantasy_content>`
tradeTransaction = `
<fantasy_content>
<transaction>
<transaction_key>%s</transaction_key>
<type>pending_trade</type>
<action>%s</action>
<trade_note>%s</trade_note>
<voter_team_key>%s</voter_team_key>
</transaction>
</fantasy_content>`
cancelTransaction = `
<fantasy_content>
<transaction>
<transaction_key>%s</transaction_key>
<type>%s</type>
</transaction>
</fantasy_content>`
)