-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathclassinfo_mock_test.go
155 lines (154 loc) · 3.93 KB
/
classinfo_mock_test.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
package steamapi
// GetMockOKGetAssetClassInfo steam API gives class_id, market_hash_name...
// http://api.steampowered.com/ISteamEconomy/GetAssetClassInfo/v0001?key=XXX&format=json&language=en&appid=XXX&class_count=2&classid0=123456789
func GetMockOKGetAssetClassInfo() string {
return `
{
"result": {
"123456789": {
"icon_url": "W_I_5GLm4wPcv9jJQ7z7tz_l_0sEIYUhRfbF4arNQkgGQGKd3kMuVpMgCwRZrhSfeEqb1qNMeO7lDgsvJYj2VkHyNb-A-UWkTe9Xc8Rgd2sbj9_ugkgSUXffBrFHXNQrvM7K0Ay7XgXDLWdun9gFgPqagJWGCPPO6UywK3ID03w",
"icon_url_large": "W_I_5GLm4wPcv9jJQ7z7tz_l_0sEIYUhRfbF4arNQkgGQGKd3kMuVpMgCwRZrhSfeEqb1qNMeO7lDgsvJYj2VkHyNb-A-UWkTe9Xc8RgBmMYzo69mB0TByTSDb8RDYMpupzD1APoW1HCcWFun4wGivufgpfQUqHSrESyJVJuk7o-hPMuyZ4",
"icon_drag_url": "",
"name": "Ye Olde Pipe",
"market_hash_name": "Ye Olde Pipe",
"market_name": "Ye Olde Pipe",
"name_color": "D2D2D2",
"background_color": "",
"type": "Common Pipe",
"tradable": "1",
"marketable": "1",
"commodity": "0",
"market_tradable_restriction": "7",
"market_marketable_restriction": "7",
"fraudwarnings": "",
"descriptions": {
"0": {
"type": "html",
"value": "Used By: Kunkka",
"app_data": ""
},
"1": {
"type": "html",
"value": " ",
"app_data": ""
},
"2": {
"type": "html",
"value": "Armaments of Leviathan",
"color": "9da1a9",
"app_data": {
"def_index": "20267",
"is_itemset_name": "1"
}
},
"3": {
"type": "html",
"value": "Admiral's Foraged Cap",
"color": "6c7075",
"app_data": {
"def_index": "5463"
}
},
"4": {
"type": "html",
"value": "Admiral's Stash",
"color": "6c7075",
"app_data": {
"def_index": "5464"
}
},
"5": {
"type": "html",
"value": "Claddish Gauntlets",
"color": "6c7075",
"app_data": {
"def_index": "5465"
}
},
"6": {
"type": "html",
"value": "Claddish Guard",
"color": "6c7075",
"app_data": {
"def_index": "5466"
}
},
"7": {
"type": "html",
"value": "Claddish Hightops",
"color": "6c7075",
"app_data": {
"def_index": "5467"
}
},
"8": {
"type": "html",
"value": "Neptunian Sabre",
"color": "6c7075",
"app_data": {
"def_index": "5468"
}
},
"9": {
"type": "html",
"value": "Admiral's Salty Shawl",
"color": "6c7075",
"app_data": {
"def_index": "5469"
}
},
"10": {
"type": "html",
"value": "Ye Olde Pipe",
"color": "6c7075",
"app_data": {
"def_index": "5470"
}
},
"11": {
"type": "html",
"value": "An old pipe Kunkka plucked from a tidepool after being shipwrecked, the old seadog claims it brings him fortune and good luck, and thus never ever takes it from his scurvy-ridden mouth. \r\n\t",
"app_data": ""
}
},
"tags": {
"0": {
"internal_name": "unique",
"name": "Standard",
"category": "Quality",
"color": "D2D2D2",
"category_name": "Quality"
},
"1": {
"internal_name": "Rarity_Common",
"name": "Common",
"category": "Rarity",
"color": "b0c3d9",
"category_name": "Rarity"
},
"2": {
"internal_name": "wearable",
"name": "Wearable",
"category": "Type",
"category_name": "Type"
},
"3": {
"internal_name": "neck",
"name": "Neck",
"category": "Slot",
"category_name": "Slot"
},
"4": {
"internal_name": "npc_dota_hero_kunkka",
"name": "Kunkka",
"category": "Hero",
"category_name": "Hero"
}
},
"classid": "123456789"
},
"success": true
}
}
`
}