steamutils 1.3.52 → 1.3.54

Sign up to get free protection for your applications and to get access to all the features.
package/remote.js CHANGED
@@ -1,55 +1,53 @@
1
- import "./string.js";
2
1
  import axios from "axios";
3
- import SteamUser from "./index.js";
2
+ import SteamUser, { ELanguage } from "./index.js";
3
+ import CookieManager from "./CookieManager.js";
4
4
 
5
5
  export default class RemoteSteamUser {
6
- constructor(cookies) {
7
- this._cookies = cookies;
6
+ constructor(cookies, refreshCookie, onRefreshCookie) {
7
+ if (!Array.isArray(cookies)) {
8
+ cookies = [cookies];
9
+ }
10
+ this._refreshCookie = refreshCookie;
11
+ this._onRefreshCookie = onRefreshCookie;
12
+ this._cookies = cookies.map(function (cookie) {
13
+ return new CookieManager(cookie?.cookie || cookie);
14
+ });
15
+ const timezoneOffset = `${new Date().getTimezoneOffset() * -1 * 60},0`;
16
+ for (const cookie of this._cookies) {
17
+ cookie.setCookie("timezoneOffset", timezoneOffset);
8
18
 
9
- let { steamMachineAuth, steamLoginSecure, steamRememberLogin, steamId, miniprofile, sessionid } = SteamUser.parseCookie(this._cookies.toString());
19
+ let { steamMachineAuth, steamLoginSecure, steamRememberLogin, steamId, miniprofile, sessionid } = SteamUser.parseCookie(cookie.toString());
10
20
 
11
- this._myProfile = `profiles/${steamId}`;
21
+ if (!sessionid) {
22
+ sessionid = SteamUser.generateSessionID();
23
+ cookie.setCookie("sessionid", sessionid);
24
+ }
12
25
 
13
- if (!sessionid) {
14
- sessionid = SteamUser.generateSessionID();
15
- this._cookies.setCookie("sessionid", sessionid);
26
+ this._sessionId = sessionid;
27
+ this._customURL = null;
28
+ this._steamIdUser = steamId;
29
+ this._miniProfileUser = miniprofile;
30
+ this._steamMachineAuth = steamMachineAuth;
31
+ this._steamLoginSecure = steamLoginSecure;
32
+ this._steamRememberLogin = steamRememberLogin;
16
33
  }
17
34
 
18
- this._sessionId = sessionid;
19
- this._steamIdUser = steamId;
20
- this._miniProfileUser = miniprofile;
21
- this._steamMachineAuth = steamMachineAuth;
22
- this._steamLoginSecure = steamLoginSecure;
23
- this._steamRememberLogin = steamRememberLogin;
24
- }
35
+ this.setSteamLanguage(ELanguage.english);
25
36
 
26
- async setSteamLanguage(language) {
27
- if (!RemoteSteamUser.__appIndex) {
28
- RemoteSteamUser.__appIndex = 0;
29
- }
30
- RemoteSteamUser.__appIndex++;
31
- if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
32
- RemoteSteamUser.__appIndex = 0;
37
+ if (!this._steamIdUser) {
38
+ console.error("Invalid cookie. Missing steamId");
33
39
  }
40
+ }
34
41
 
35
- const __params = [language];
36
- if (__params.length === 1 && __params[0] === undefined) {
37
- __params.length = 0;
42
+ setSteamLanguage(language) {
43
+ language = language?.toLowerCase();
44
+ if (!Object.hasOwn(ELanguage, language)) {
45
+ return;
38
46
  }
39
-
40
- try {
41
- const result = (
42
- await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
43
- method: "setSteamLanguage",
44
- params: __params,
45
- cookies: this._cookies,
46
- })
47
- ).data?.result;
48
- return result;
49
- } catch (e) {}
47
+ this.Steam_Language = language;
48
+ this._cookies.forEach((cookie) => cookie.setCookie("Steam_Language", language));
50
49
  }
51
-
52
- async getCookies() {
50
+ async getCookies(index) {
53
51
  if (!RemoteSteamUser.__appIndex) {
54
52
  RemoteSteamUser.__appIndex = 0;
55
53
  }
@@ -58,7 +56,7 @@ export default class RemoteSteamUser {
58
56
  RemoteSteamUser.__appIndex = 0;
59
57
  }
60
58
 
61
- const __params = [];
59
+ const __params = [index];
62
60
  if (__params.length === 1 && __params[0] === undefined) {
63
61
  __params.length = 0;
64
62
  }
@@ -74,7 +72,6 @@ export default class RemoteSteamUser {
74
72
  return result;
75
73
  } catch (e) {}
76
74
  }
77
-
78
75
  async getSteamIdUser() {
79
76
  if (!RemoteSteamUser.__appIndex) {
80
77
  RemoteSteamUser.__appIndex = 0;
@@ -100,7 +97,6 @@ export default class RemoteSteamUser {
100
97
  return result;
101
98
  } catch (e) {}
102
99
  }
103
-
104
100
  async getMiniProfileUser() {
105
101
  if (!RemoteSteamUser.__appIndex) {
106
102
  RemoteSteamUser.__appIndex = 0;
@@ -126,7 +122,6 @@ export default class RemoteSteamUser {
126
122
  return result;
127
123
  } catch (e) {}
128
124
  }
129
-
130
125
  async getSessionid() {
131
126
  if (!RemoteSteamUser.__appIndex) {
132
127
  RemoteSteamUser.__appIndex = 0;
@@ -152,7 +147,6 @@ export default class RemoteSteamUser {
152
147
  return result;
153
148
  } catch (e) {}
154
149
  }
155
-
156
150
  async getSteamMachineAuth() {
157
151
  if (!RemoteSteamUser.__appIndex) {
158
152
  RemoteSteamUser.__appIndex = 0;
@@ -178,8 +172,7 @@ export default class RemoteSteamUser {
178
172
  return result;
179
173
  } catch (e) {}
180
174
  }
181
-
182
- async getSteamUserProfileURL(steamID) {
175
+ async getSteamUserProfileURL(steamId) {
183
176
  if (!RemoteSteamUser.__appIndex) {
184
177
  RemoteSteamUser.__appIndex = 0;
185
178
  }
@@ -188,7 +181,7 @@ export default class RemoteSteamUser {
188
181
  RemoteSteamUser.__appIndex = 0;
189
182
  }
190
183
 
191
- const __params = [steamID];
184
+ const __params = [steamId];
192
185
  if (__params.length === 1 && __params[0] === undefined) {
193
186
  __params.length = 0;
194
187
  }
@@ -204,7 +197,6 @@ export default class RemoteSteamUser {
204
197
  return result;
205
198
  } catch (e) {}
206
199
  }
207
-
208
200
  async getMyProfileURL() {
209
201
  if (!RemoteSteamUser.__appIndex) {
210
202
  RemoteSteamUser.__appIndex = 0;
@@ -230,8 +222,7 @@ export default class RemoteSteamUser {
230
222
  return result;
231
223
  } catch (e) {}
232
224
  }
233
-
234
- async getUserSummary(steamID) {
225
+ async getUserSummary(steamId) {
235
226
  if (!RemoteSteamUser.__appIndex) {
236
227
  RemoteSteamUser.__appIndex = 0;
237
228
  }
@@ -240,7 +231,7 @@ export default class RemoteSteamUser {
240
231
  RemoteSteamUser.__appIndex = 0;
241
232
  }
242
233
 
243
- const __params = [steamID];
234
+ const __params = [steamId];
244
235
  if (__params.length === 1 && __params[0] === undefined) {
245
236
  __params.length = 0;
246
237
  }
@@ -256,8 +247,7 @@ export default class RemoteSteamUser {
256
247
  return result;
257
248
  } catch (e) {}
258
249
  }
259
-
260
- async getUserSummaryFromProfile(steamID) {
250
+ async getUserSummaryFromProfile(steamId) {
261
251
  if (!RemoteSteamUser.__appIndex) {
262
252
  RemoteSteamUser.__appIndex = 0;
263
253
  }
@@ -266,7 +256,7 @@ export default class RemoteSteamUser {
266
256
  RemoteSteamUser.__appIndex = 0;
267
257
  }
268
258
 
269
- const __params = [steamID];
259
+ const __params = [steamId];
270
260
  if (__params.length === 1 && __params[0] === undefined) {
271
261
  __params.length = 0;
272
262
  }
@@ -282,33 +272,6 @@ export default class RemoteSteamUser {
282
272
  return result;
283
273
  } catch (e) {}
284
274
  }
285
-
286
- async _formatHttpRequest(params) {
287
- if (!RemoteSteamUser.__appIndex) {
288
- RemoteSteamUser.__appIndex = 0;
289
- }
290
- RemoteSteamUser.__appIndex++;
291
- if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
292
- RemoteSteamUser.__appIndex = 0;
293
- }
294
-
295
- const __params = [params];
296
- if (__params.length === 1 && __params[0] === undefined) {
297
- __params.length = 0;
298
- }
299
-
300
- try {
301
- const result = (
302
- await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
303
- method: "_formatHttpRequest",
304
- params: __params,
305
- cookies: this._cookies,
306
- })
307
- ).data?.result;
308
- return result;
309
- } catch (e) {}
310
- }
311
-
312
275
  async _httpRequest(params) {
313
276
  if (!RemoteSteamUser.__appIndex) {
314
277
  RemoteSteamUser.__appIndex = 0;
@@ -334,7 +297,6 @@ export default class RemoteSteamUser {
334
297
  return result;
335
298
  } catch (e) {}
336
299
  }
337
-
338
300
  async _httpMyRequest(params) {
339
301
  if (!RemoteSteamUser.__appIndex) {
340
302
  RemoteSteamUser.__appIndex = 0;
@@ -360,7 +322,6 @@ export default class RemoteSteamUser {
360
322
  return result;
361
323
  } catch (e) {}
362
324
  }
363
-
364
325
  async _httpRequestAjax(params) {
365
326
  if (!RemoteSteamUser.__appIndex) {
366
327
  RemoteSteamUser.__appIndex = 0;
@@ -386,7 +347,6 @@ export default class RemoteSteamUser {
386
347
  return result;
387
348
  } catch (e) {}
388
349
  }
389
-
390
350
  async _httpMyRequestAjax(params) {
391
351
  if (!RemoteSteamUser.__appIndex) {
392
352
  RemoteSteamUser.__appIndex = 0;
@@ -412,7 +372,6 @@ export default class RemoteSteamUser {
412
372
  return result;
413
373
  } catch (e) {}
414
374
  }
415
-
416
375
  async getQuickInviteData() {
417
376
  if (!RemoteSteamUser.__appIndex) {
418
377
  RemoteSteamUser.__appIndex = 0;
@@ -438,7 +397,6 @@ export default class RemoteSteamUser {
438
397
  return result;
439
398
  } catch (e) {}
440
399
  }
441
-
442
400
  async getQuickInviteLink() {
443
401
  if (!RemoteSteamUser.__appIndex) {
444
402
  RemoteSteamUser.__appIndex = 0;
@@ -464,7 +422,6 @@ export default class RemoteSteamUser {
464
422
  return result;
465
423
  } catch (e) {}
466
424
  }
467
-
468
425
  async getCurrentQuickInviteTokens() {
469
426
  if (!RemoteSteamUser.__appIndex) {
470
427
  RemoteSteamUser.__appIndex = 0;
@@ -490,7 +447,6 @@ export default class RemoteSteamUser {
490
447
  return result;
491
448
  } catch (e) {}
492
449
  }
493
-
494
450
  async acceptQuickInviteData(quickInviteData) {
495
451
  if (!RemoteSteamUser.__appIndex) {
496
452
  RemoteSteamUser.__appIndex = 0;
@@ -516,7 +472,6 @@ export default class RemoteSteamUser {
516
472
  return result;
517
473
  } catch (e) {}
518
474
  }
519
-
520
475
  async acceptQuickInviteLink(quickInviteLink) {
521
476
  if (!RemoteSteamUser.__appIndex) {
522
477
  RemoteSteamUser.__appIndex = 0;
@@ -542,7 +497,6 @@ export default class RemoteSteamUser {
542
497
  return result;
543
498
  } catch (e) {}
544
499
  }
545
-
546
500
  async _parseComments(html) {
547
501
  if (!RemoteSteamUser.__appIndex) {
548
502
  RemoteSteamUser.__appIndex = 0;
@@ -568,7 +522,6 @@ export default class RemoteSteamUser {
568
522
  return result;
569
523
  } catch (e) {}
570
524
  }
571
-
572
525
  async getMyComments() {
573
526
  if (!RemoteSteamUser.__appIndex) {
574
527
  RemoteSteamUser.__appIndex = 0;
@@ -594,8 +547,7 @@ export default class RemoteSteamUser {
594
547
  return result;
595
548
  } catch (e) {}
596
549
  }
597
-
598
- async getUserComments(steamID) {
550
+ async getUserComments(steamId) {
599
551
  if (!RemoteSteamUser.__appIndex) {
600
552
  RemoteSteamUser.__appIndex = 0;
601
553
  }
@@ -604,7 +556,7 @@ export default class RemoteSteamUser {
604
556
  RemoteSteamUser.__appIndex = 0;
605
557
  }
606
558
 
607
- const __params = [steamID];
559
+ const __params = [steamId];
608
560
  if (__params.length === 1 && __params[0] === undefined) {
609
561
  __params.length = 0;
610
562
  }
@@ -620,7 +572,6 @@ export default class RemoteSteamUser {
620
572
  return result;
621
573
  } catch (e) {}
622
574
  }
623
-
624
575
  async getGroupOverview({ groupURL, gid, page, content_only, searchKey }) {
625
576
  if (!RemoteSteamUser.__appIndex) {
626
577
  RemoteSteamUser.__appIndex = 0;
@@ -630,15 +581,7 @@ export default class RemoteSteamUser {
630
581
  RemoteSteamUser.__appIndex = 0;
631
582
  }
632
583
 
633
- const __params = [
634
- {
635
- groupURL,
636
- gid,
637
- page,
638
- content_only,
639
- searchKey,
640
- },
641
- ];
584
+ const __params = [{ groupURL, gid, page, content_only, searchKey }];
642
585
  if (__params.length === 1 && __params[0] === undefined) {
643
586
  __params.length = 0;
644
587
  }
@@ -654,7 +597,6 @@ export default class RemoteSteamUser {
654
597
  return result;
655
598
  } catch (e) {}
656
599
  }
657
-
658
600
  async getGroupMembers({ groupURL, gid, page, link, content_only, searchKey }) {
659
601
  if (!RemoteSteamUser.__appIndex) {
660
602
  RemoteSteamUser.__appIndex = 0;
@@ -664,16 +606,7 @@ export default class RemoteSteamUser {
664
606
  RemoteSteamUser.__appIndex = 0;
665
607
  }
666
608
 
667
- const __params = [
668
- {
669
- groupURL,
670
- gid,
671
- page,
672
- link,
673
- content_only,
674
- searchKey,
675
- },
676
- ];
609
+ const __params = [{ groupURL, gid, page, link, content_only, searchKey }];
677
610
  if (__params.length === 1 && __params[0] === undefined) {
678
611
  __params.length = 0;
679
612
  }
@@ -689,7 +622,6 @@ export default class RemoteSteamUser {
689
622
  return result;
690
623
  } catch (e) {}
691
624
  }
692
-
693
625
  async getGroupMembersFull({ groupURL, gid, cookie, cbOnMember, cbOnMembers, content_only, searchKey }) {
694
626
  if (!RemoteSteamUser.__appIndex) {
695
627
  RemoteSteamUser.__appIndex = 0;
@@ -699,17 +631,7 @@ export default class RemoteSteamUser {
699
631
  RemoteSteamUser.__appIndex = 0;
700
632
  }
701
633
 
702
- const __params = [
703
- {
704
- groupURL,
705
- gid,
706
- cookie,
707
- cbOnMember,
708
- cbOnMembers,
709
- content_only,
710
- searchKey,
711
- },
712
- ];
634
+ const __params = [{ groupURL, gid, cookie, cbOnMember, cbOnMembers, content_only, searchKey }];
713
635
  if (__params.length === 1 && __params[0] === undefined) {
714
636
  __params.length = 0;
715
637
  }
@@ -725,7 +647,6 @@ export default class RemoteSteamUser {
725
647
  return result;
726
648
  } catch (e) {}
727
649
  }
728
-
729
650
  async _parseFriendList(result) {
730
651
  if (!RemoteSteamUser.__appIndex) {
731
652
  RemoteSteamUser.__appIndex = 0;
@@ -751,8 +672,7 @@ export default class RemoteSteamUser {
751
672
  return result;
752
673
  } catch (e) {}
753
674
  }
754
-
755
- async getFollowingPlayersList(steamID) {
675
+ async getFollowingPlayersList(steamId) {
756
676
  if (!RemoteSteamUser.__appIndex) {
757
677
  RemoteSteamUser.__appIndex = 0;
758
678
  }
@@ -761,7 +681,7 @@ export default class RemoteSteamUser {
761
681
  RemoteSteamUser.__appIndex = 0;
762
682
  }
763
683
 
764
- const __params = [steamID];
684
+ const __params = [steamId];
765
685
  if (__params.length === 1 && __params[0] === undefined) {
766
686
  __params.length = 0;
767
687
  }
@@ -777,8 +697,7 @@ export default class RemoteSteamUser {
777
697
  return result;
778
698
  } catch (e) {}
779
699
  }
780
-
781
- async getFriendsList(steamID) {
700
+ async getFriendsList(steamId) {
782
701
  if (!RemoteSteamUser.__appIndex) {
783
702
  RemoteSteamUser.__appIndex = 0;
784
703
  }
@@ -787,7 +706,7 @@ export default class RemoteSteamUser {
787
706
  RemoteSteamUser.__appIndex = 0;
788
707
  }
789
708
 
790
- const __params = [steamID];
709
+ const __params = [steamId];
791
710
  if (__params.length === 1 && __params[0] === undefined) {
792
711
  __params.length = 0;
793
712
  }
@@ -803,33 +722,6 @@ export default class RemoteSteamUser {
803
722
  return result;
804
723
  } catch (e) {}
805
724
  }
806
-
807
- async getMyFriendsList() {
808
- if (!RemoteSteamUser.__appIndex) {
809
- RemoteSteamUser.__appIndex = 0;
810
- }
811
- RemoteSteamUser.__appIndex++;
812
- if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
813
- RemoteSteamUser.__appIndex = 0;
814
- }
815
-
816
- const __params = [];
817
- if (__params.length === 1 && __params[0] === undefined) {
818
- __params.length = 0;
819
- }
820
-
821
- try {
822
- const result = (
823
- await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
824
- method: "getMyFriendsList",
825
- params: __params,
826
- cookies: this._cookies,
827
- })
828
- ).data?.result;
829
- return result;
830
- } catch (e) {}
831
- }
832
-
833
725
  async getMyFriendsIDList() {
834
726
  if (!RemoteSteamUser.__appIndex) {
835
727
  RemoteSteamUser.__appIndex = 0;
@@ -855,59 +747,6 @@ export default class RemoteSteamUser {
855
747
  return result;
856
748
  } catch (e) {}
857
749
  }
858
-
859
- async getMyFollowingPlayersList() {
860
- if (!RemoteSteamUser.__appIndex) {
861
- RemoteSteamUser.__appIndex = 0;
862
- }
863
- RemoteSteamUser.__appIndex++;
864
- if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
865
- RemoteSteamUser.__appIndex = 0;
866
- }
867
-
868
- const __params = [];
869
- if (__params.length === 1 && __params[0] === undefined) {
870
- __params.length = 0;
871
- }
872
-
873
- try {
874
- const result = (
875
- await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
876
- method: "getMyFollowingPlayersList",
877
- params: __params,
878
- cookies: this._cookies,
879
- })
880
- ).data?.result;
881
- return result;
882
- } catch (e) {}
883
- }
884
-
885
- async _parsePendingFriendList(html, selector) {
886
- if (!RemoteSteamUser.__appIndex) {
887
- RemoteSteamUser.__appIndex = 0;
888
- }
889
- RemoteSteamUser.__appIndex++;
890
- if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
891
- RemoteSteamUser.__appIndex = 0;
892
- }
893
-
894
- const __params = [html, selector];
895
- if (__params.length === 1 && __params[0] === undefined) {
896
- __params.length = 0;
897
- }
898
-
899
- try {
900
- const result = (
901
- await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
902
- method: "_parsePendingFriendList",
903
- params: __params,
904
- cookies: this._cookies,
905
- })
906
- ).data?.result;
907
- return result;
908
- } catch (e) {}
909
- }
910
-
911
750
  async getPendingFriendList() {
912
751
  if (!RemoteSteamUser.__appIndex) {
913
752
  RemoteSteamUser.__appIndex = 0;
@@ -933,7 +772,6 @@ export default class RemoteSteamUser {
933
772
  return result;
934
773
  } catch (e) {}
935
774
  }
936
-
937
775
  async getMatchHistory_initial(matchHistoryType) {
938
776
  if (!RemoteSteamUser.__appIndex) {
939
777
  RemoteSteamUser.__appIndex = 0;
@@ -959,7 +797,6 @@ export default class RemoteSteamUser {
959
797
  return result;
960
798
  } catch (e) {}
961
799
  }
962
-
963
800
  async getClientJsToken(retry) {
964
801
  if (!RemoteSteamUser.__appIndex) {
965
802
  RemoteSteamUser.__appIndex = 0;
@@ -985,7 +822,6 @@ export default class RemoteSteamUser {
985
822
  return result;
986
823
  } catch (e) {}
987
824
  }
988
-
989
825
  async _getHistoryMatches(matchHistoryType, token) {
990
826
  if (!RemoteSteamUser.__appIndex) {
991
827
  RemoteSteamUser.__appIndex = 0;
@@ -1011,33 +847,6 @@ export default class RemoteSteamUser {
1011
847
  return result;
1012
848
  } catch (e) {}
1013
849
  }
1014
-
1015
- async _parseMatchHistory(html) {
1016
- if (!RemoteSteamUser.__appIndex) {
1017
- RemoteSteamUser.__appIndex = 0;
1018
- }
1019
- RemoteSteamUser.__appIndex++;
1020
- if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1021
- RemoteSteamUser.__appIndex = 0;
1022
- }
1023
-
1024
- const __params = [html];
1025
- if (__params.length === 1 && __params[0] === undefined) {
1026
- __params.length = 0;
1027
- }
1028
-
1029
- try {
1030
- const result = (
1031
- await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1032
- method: "_parseMatchHistory",
1033
- params: __params,
1034
- cookies: this._cookies,
1035
- })
1036
- ).data?.result;
1037
- return result;
1038
- } catch (e) {}
1039
- }
1040
-
1041
850
  async getFullHistoryMatches({ matchHistoryTypes, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }) {
1042
851
  if (!RemoteSteamUser.__appIndex) {
1043
852
  RemoteSteamUser.__appIndex = 0;
@@ -1047,16 +856,7 @@ export default class RemoteSteamUser {
1047
856
  RemoteSteamUser.__appIndex = 0;
1048
857
  }
1049
858
 
1050
- const __params = [
1051
- {
1052
- matchHistoryTypes,
1053
- cbOnMatch,
1054
- cbOnMatches,
1055
- maxPage,
1056
- Started_playing_CS_GO,
1057
- shouldStop,
1058
- },
1059
- ];
859
+ const __params = [{ matchHistoryTypes, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }];
1060
860
  if (__params.length === 1 && __params[0] === undefined) {
1061
861
  __params.length = 0;
1062
862
  }
@@ -1072,7 +872,6 @@ export default class RemoteSteamUser {
1072
872
  return result;
1073
873
  } catch (e) {}
1074
874
  }
1075
-
1076
875
  async _getFullHistoryMatches({ matchHistoryType, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }) {
1077
876
  if (!RemoteSteamUser.__appIndex) {
1078
877
  RemoteSteamUser.__appIndex = 0;
@@ -1082,16 +881,7 @@ export default class RemoteSteamUser {
1082
881
  RemoteSteamUser.__appIndex = 0;
1083
882
  }
1084
883
 
1085
- const __params = [
1086
- {
1087
- matchHistoryType,
1088
- cbOnMatch,
1089
- cbOnMatches,
1090
- maxPage,
1091
- Started_playing_CS_GO,
1092
- shouldStop,
1093
- },
1094
- ];
884
+ const __params = [{ matchHistoryType, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }];
1095
885
  if (__params.length === 1 && __params[0] === undefined) {
1096
886
  __params.length = 0;
1097
887
  }
@@ -1107,8 +897,7 @@ export default class RemoteSteamUser {
1107
897
  return result;
1108
898
  } catch (e) {}
1109
899
  }
1110
-
1111
- async followUser(steamID) {
900
+ async followUser(steamId) {
1112
901
  if (!RemoteSteamUser.__appIndex) {
1113
902
  RemoteSteamUser.__appIndex = 0;
1114
903
  }
@@ -1117,7 +906,7 @@ export default class RemoteSteamUser {
1117
906
  RemoteSteamUser.__appIndex = 0;
1118
907
  }
1119
908
 
1120
- const __params = [steamID];
909
+ const __params = [steamId];
1121
910
  if (__params.length === 1 && __params[0] === undefined) {
1122
911
  __params.length = 0;
1123
912
  }
@@ -1133,8 +922,7 @@ export default class RemoteSteamUser {
1133
922
  return result;
1134
923
  } catch (e) {}
1135
924
  }
1136
-
1137
- async unfollowUser(steamID) {
925
+ async unfollowUser(steamId) {
1138
926
  if (!RemoteSteamUser.__appIndex) {
1139
927
  RemoteSteamUser.__appIndex = 0;
1140
928
  }
@@ -1143,7 +931,7 @@ export default class RemoteSteamUser {
1143
931
  RemoteSteamUser.__appIndex = 0;
1144
932
  }
1145
933
 
1146
- const __params = [steamID];
934
+ const __params = [steamId];
1147
935
  if (__params.length === 1 && __params[0] === undefined) {
1148
936
  __params.length = 0;
1149
937
  }
@@ -1159,7 +947,6 @@ export default class RemoteSteamUser {
1159
947
  return result;
1160
948
  } catch (e) {}
1161
949
  }
1162
-
1163
950
  async unfollowUsers(steamIDs) {
1164
951
  if (!RemoteSteamUser.__appIndex) {
1165
952
  RemoteSteamUser.__appIndex = 0;
@@ -1185,7 +972,6 @@ export default class RemoteSteamUser {
1185
972
  return result;
1186
973
  } catch (e) {}
1187
974
  }
1188
-
1189
975
  async unfollowAllFollowUsers() {
1190
976
  if (!RemoteSteamUser.__appIndex) {
1191
977
  RemoteSteamUser.__appIndex = 0;
@@ -1211,8 +997,7 @@ export default class RemoteSteamUser {
1211
997
  return result;
1212
998
  } catch (e) {}
1213
999
  }
1214
-
1215
- async blockCommunicationUser(steamID) {
1000
+ async blockCommunicationUser(steamId) {
1216
1001
  if (!RemoteSteamUser.__appIndex) {
1217
1002
  RemoteSteamUser.__appIndex = 0;
1218
1003
  }
@@ -1221,7 +1006,7 @@ export default class RemoteSteamUser {
1221
1006
  RemoteSteamUser.__appIndex = 0;
1222
1007
  }
1223
1008
 
1224
- const __params = [steamID];
1009
+ const __params = [steamId];
1225
1010
  if (__params.length === 1 && __params[0] === undefined) {
1226
1011
  __params.length = 0;
1227
1012
  }
@@ -1237,8 +1022,7 @@ export default class RemoteSteamUser {
1237
1022
  return result;
1238
1023
  } catch (e) {}
1239
1024
  }
1240
-
1241
- async unblockCommunicationUser(steamID) {
1025
+ async unblockCommunicationUser(steamId) {
1242
1026
  if (!RemoteSteamUser.__appIndex) {
1243
1027
  RemoteSteamUser.__appIndex = 0;
1244
1028
  }
@@ -1247,7 +1031,7 @@ export default class RemoteSteamUser {
1247
1031
  RemoteSteamUser.__appIndex = 0;
1248
1032
  }
1249
1033
 
1250
- const __params = [steamID];
1034
+ const __params = [steamId];
1251
1035
  if (__params.length === 1 && __params[0] === undefined) {
1252
1036
  __params.length = 0;
1253
1037
  }
@@ -1263,8 +1047,7 @@ export default class RemoteSteamUser {
1263
1047
  return result;
1264
1048
  } catch (e) {}
1265
1049
  }
1266
-
1267
- async addFriendUser(steamID) {
1050
+ async addFriendUser(steamId) {
1268
1051
  if (!RemoteSteamUser.__appIndex) {
1269
1052
  RemoteSteamUser.__appIndex = 0;
1270
1053
  }
@@ -1273,7 +1056,7 @@ export default class RemoteSteamUser {
1273
1056
  RemoteSteamUser.__appIndex = 0;
1274
1057
  }
1275
1058
 
1276
- const __params = [steamID];
1059
+ const __params = [steamId];
1277
1060
  if (__params.length === 1 && __params[0] === undefined) {
1278
1061
  __params.length = 0;
1279
1062
  }
@@ -1289,8 +1072,7 @@ export default class RemoteSteamUser {
1289
1072
  return result;
1290
1073
  } catch (e) {}
1291
1074
  }
1292
-
1293
- async removeFriend(steamID) {
1075
+ async removeFriend(steamId) {
1294
1076
  if (!RemoteSteamUser.__appIndex) {
1295
1077
  RemoteSteamUser.__appIndex = 0;
1296
1078
  }
@@ -1299,7 +1081,7 @@ export default class RemoteSteamUser {
1299
1081
  RemoteSteamUser.__appIndex = 0;
1300
1082
  }
1301
1083
 
1302
- const __params = [steamID];
1084
+ const __params = [steamId];
1303
1085
  if (__params.length === 1 && __params[0] === undefined) {
1304
1086
  __params.length = 0;
1305
1087
  }
@@ -1315,8 +1097,7 @@ export default class RemoteSteamUser {
1315
1097
  return result;
1316
1098
  } catch (e) {}
1317
1099
  }
1318
-
1319
- async acceptFriendRequest(steamID) {
1100
+ async acceptFriendRequest(steamId) {
1320
1101
  if (!RemoteSteamUser.__appIndex) {
1321
1102
  RemoteSteamUser.__appIndex = 0;
1322
1103
  }
@@ -1325,7 +1106,7 @@ export default class RemoteSteamUser {
1325
1106
  RemoteSteamUser.__appIndex = 0;
1326
1107
  }
1327
1108
 
1328
- const __params = [steamID];
1109
+ const __params = [steamId];
1329
1110
  if (__params.length === 1 && __params[0] === undefined) {
1330
1111
  __params.length = 0;
1331
1112
  }
@@ -1341,8 +1122,7 @@ export default class RemoteSteamUser {
1341
1122
  return result;
1342
1123
  } catch (e) {}
1343
1124
  }
1344
-
1345
- async cancelAddFriendUser(steamID) {
1125
+ async cancelAddFriendUser(steamId) {
1346
1126
  if (!RemoteSteamUser.__appIndex) {
1347
1127
  RemoteSteamUser.__appIndex = 0;
1348
1128
  }
@@ -1351,7 +1131,7 @@ export default class RemoteSteamUser {
1351
1131
  RemoteSteamUser.__appIndex = 0;
1352
1132
  }
1353
1133
 
1354
- const __params = [steamID];
1134
+ const __params = [steamId];
1355
1135
  if (__params.length === 1 && __params[0] === undefined) {
1356
1136
  __params.length = 0;
1357
1137
  }
@@ -1367,8 +1147,7 @@ export default class RemoteSteamUser {
1367
1147
  return result;
1368
1148
  } catch (e) {}
1369
1149
  }
1370
-
1371
- async ignoreFriendRequest(steamID) {
1150
+ async ignoreFriendRequest(steamId) {
1372
1151
  if (!RemoteSteamUser.__appIndex) {
1373
1152
  RemoteSteamUser.__appIndex = 0;
1374
1153
  }
@@ -1377,7 +1156,7 @@ export default class RemoteSteamUser {
1377
1156
  RemoteSteamUser.__appIndex = 0;
1378
1157
  }
1379
1158
 
1380
- const __params = [steamID];
1159
+ const __params = [steamId];
1381
1160
  if (__params.length === 1 && __params[0] === undefined) {
1382
1161
  __params.length = 0;
1383
1162
  }
@@ -1393,8 +1172,7 @@ export default class RemoteSteamUser {
1393
1172
  return result;
1394
1173
  } catch (e) {}
1395
1174
  }
1396
-
1397
- async setNickname(steamID, nickname) {
1175
+ async setNickname(steamId, nickname) {
1398
1176
  if (!RemoteSteamUser.__appIndex) {
1399
1177
  RemoteSteamUser.__appIndex = 0;
1400
1178
  }
@@ -1403,7 +1181,7 @@ export default class RemoteSteamUser {
1403
1181
  RemoteSteamUser.__appIndex = 0;
1404
1182
  }
1405
1183
 
1406
- const __params = [steamID, nickname];
1184
+ const __params = [steamId, nickname];
1407
1185
  if (__params.length === 1 && __params[0] === undefined) {
1408
1186
  __params.length = 0;
1409
1187
  }
@@ -1419,8 +1197,7 @@ export default class RemoteSteamUser {
1419
1197
  return result;
1420
1198
  } catch (e) {}
1421
1199
  }
1422
-
1423
- async removeNickname(steamID) {
1200
+ async removeNickname(steamId) {
1424
1201
  if (!RemoteSteamUser.__appIndex) {
1425
1202
  RemoteSteamUser.__appIndex = 0;
1426
1203
  }
@@ -1429,7 +1206,7 @@ export default class RemoteSteamUser {
1429
1206
  RemoteSteamUser.__appIndex = 0;
1430
1207
  }
1431
1208
 
1432
- const __params = [steamID];
1209
+ const __params = [steamId];
1433
1210
  if (__params.length === 1 && __params[0] === undefined) {
1434
1211
  __params.length = 0;
1435
1212
  }
@@ -1445,8 +1222,7 @@ export default class RemoteSteamUser {
1445
1222
  return result;
1446
1223
  } catch (e) {}
1447
1224
  }
1448
-
1449
- async getNameHistory(steamID) {
1225
+ async getNameHistory(steamId) {
1450
1226
  if (!RemoteSteamUser.__appIndex) {
1451
1227
  RemoteSteamUser.__appIndex = 0;
1452
1228
  }
@@ -1455,7 +1231,7 @@ export default class RemoteSteamUser {
1455
1231
  RemoteSteamUser.__appIndex = 0;
1456
1232
  }
1457
1233
 
1458
- const __params = [steamID];
1234
+ const __params = [steamId];
1459
1235
  if (__params.length === 1 && __params[0] === undefined) {
1460
1236
  __params.length = 0;
1461
1237
  }
@@ -1471,7 +1247,6 @@ export default class RemoteSteamUser {
1471
1247
  return result;
1472
1248
  } catch (e) {}
1473
1249
  }
1474
-
1475
1250
  async clearPreviousAliases() {
1476
1251
  if (!RemoteSteamUser.__appIndex) {
1477
1252
  RemoteSteamUser.__appIndex = 0;
@@ -1497,7 +1272,6 @@ export default class RemoteSteamUser {
1497
1272
  return result;
1498
1273
  } catch (e) {}
1499
1274
  }
1500
-
1501
1275
  async setupProfile() {
1502
1276
  if (!RemoteSteamUser.__appIndex) {
1503
1277
  RemoteSteamUser.__appIndex = 0;
@@ -1523,7 +1297,6 @@ export default class RemoteSteamUser {
1523
1297
  return result;
1524
1298
  } catch (e) {}
1525
1299
  }
1526
-
1527
1300
  async editMyProfile({ personaName, realName, customURL, country, summary, hide_profile_awards }) {
1528
1301
  if (!RemoteSteamUser.__appIndex) {
1529
1302
  RemoteSteamUser.__appIndex = 0;
@@ -1533,16 +1306,7 @@ export default class RemoteSteamUser {
1533
1306
  RemoteSteamUser.__appIndex = 0;
1534
1307
  }
1535
1308
 
1536
- const __params = [
1537
- {
1538
- personaName,
1539
- realName,
1540
- customURL,
1541
- country,
1542
- summary,
1543
- hide_profile_awards,
1544
- },
1545
- ];
1309
+ const __params = [{ personaName, realName, customURL, country, summary, hide_profile_awards }];
1546
1310
  if (__params.length === 1 && __params[0] === undefined) {
1547
1311
  __params.length = 0;
1548
1312
  }
@@ -1558,7 +1322,6 @@ export default class RemoteSteamUser {
1558
1322
  return result;
1559
1323
  } catch (e) {}
1560
1324
  }
1561
-
1562
1325
  async setPersonaName(name) {
1563
1326
  if (!RemoteSteamUser.__appIndex) {
1564
1327
  RemoteSteamUser.__appIndex = 0;
@@ -1584,7 +1347,6 @@ export default class RemoteSteamUser {
1584
1347
  return result;
1585
1348
  } catch (e) {}
1586
1349
  }
1587
-
1588
1350
  async getPrivacySettings() {
1589
1351
  if (!RemoteSteamUser.__appIndex) {
1590
1352
  RemoteSteamUser.__appIndex = 0;
@@ -1610,7 +1372,6 @@ export default class RemoteSteamUser {
1610
1372
  return result;
1611
1373
  } catch (e) {}
1612
1374
  }
1613
-
1614
1375
  async updatePrivacySettings(privacySettings) {
1615
1376
  if (!RemoteSteamUser.__appIndex) {
1616
1377
  RemoteSteamUser.__appIndex = 0;
@@ -1636,7 +1397,6 @@ export default class RemoteSteamUser {
1636
1397
  return result;
1637
1398
  } catch (e) {}
1638
1399
  }
1639
-
1640
1400
  async publicPrivacySettings() {
1641
1401
  if (!RemoteSteamUser.__appIndex) {
1642
1402
  RemoteSteamUser.__appIndex = 0;
@@ -1662,7 +1422,6 @@ export default class RemoteSteamUser {
1662
1422
  return result;
1663
1423
  } catch (e) {}
1664
1424
  }
1665
-
1666
1425
  async privatePrivacySettings() {
1667
1426
  if (!RemoteSteamUser.__appIndex) {
1668
1427
  RemoteSteamUser.__appIndex = 0;
@@ -1688,8 +1447,7 @@ export default class RemoteSteamUser {
1688
1447
  return result;
1689
1448
  } catch (e) {}
1690
1449
  }
1691
-
1692
- async postComment(steamID, message) {
1450
+ async postComment(steamId, message) {
1693
1451
  if (!RemoteSteamUser.__appIndex) {
1694
1452
  RemoteSteamUser.__appIndex = 0;
1695
1453
  }
@@ -1698,7 +1456,7 @@ export default class RemoteSteamUser {
1698
1456
  RemoteSteamUser.__appIndex = 0;
1699
1457
  }
1700
1458
 
1701
- const __params = [steamID, message];
1459
+ const __params = [steamId, message];
1702
1460
  if (__params.length === 1 && __params[0] === undefined) {
1703
1461
  __params.length = 0;
1704
1462
  }
@@ -1714,8 +1472,7 @@ export default class RemoteSteamUser {
1714
1472
  return result;
1715
1473
  } catch (e) {}
1716
1474
  }
1717
-
1718
- async deleteComment(steamID, gidcomment) {
1475
+ async deleteComment(steamId, gidcomment) {
1719
1476
  if (!RemoteSteamUser.__appIndex) {
1720
1477
  RemoteSteamUser.__appIndex = 0;
1721
1478
  }
@@ -1724,7 +1481,7 @@ export default class RemoteSteamUser {
1724
1481
  RemoteSteamUser.__appIndex = 0;
1725
1482
  }
1726
1483
 
1727
- const __params = [steamID, gidcomment];
1484
+ const __params = [steamId, gidcomment];
1728
1485
  if (__params.length === 1 && __params[0] === undefined) {
1729
1486
  __params.length = 0;
1730
1487
  }
@@ -1740,7 +1497,6 @@ export default class RemoteSteamUser {
1740
1497
  return result;
1741
1498
  } catch (e) {}
1742
1499
  }
1743
-
1744
1500
  async _formatCommentModel(comment) {
1745
1501
  if (!RemoteSteamUser.__appIndex) {
1746
1502
  RemoteSteamUser.__appIndex = 0;
@@ -1766,7 +1522,6 @@ export default class RemoteSteamUser {
1766
1522
  return result;
1767
1523
  } catch (e) {}
1768
1524
  }
1769
-
1770
1525
  async _formatPlayingTime(hrs) {
1771
1526
  if (!RemoteSteamUser.__appIndex) {
1772
1527
  RemoteSteamUser.__appIndex = 0;
@@ -1792,7 +1547,6 @@ export default class RemoteSteamUser {
1792
1547
  return result;
1793
1548
  } catch (e) {}
1794
1549
  }
1795
-
1796
1550
  async getFriendsThatPlay(appID, sorted) {
1797
1551
  if (!RemoteSteamUser.__appIndex) {
1798
1552
  RemoteSteamUser.__appIndex = 0;
@@ -1818,7 +1572,6 @@ export default class RemoteSteamUser {
1818
1572
  return result;
1819
1573
  } catch (e) {}
1820
1574
  }
1821
-
1822
1575
  async getOwnedAppsDetail() {
1823
1576
  if (!RemoteSteamUser.__appIndex) {
1824
1577
  RemoteSteamUser.__appIndex = 0;
@@ -1844,7 +1597,6 @@ export default class RemoteSteamUser {
1844
1597
  return result;
1845
1598
  } catch (e) {}
1846
1599
  }
1847
-
1848
1600
  async GetOwnedApps() {
1849
1601
  if (!RemoteSteamUser.__appIndex) {
1850
1602
  RemoteSteamUser.__appIndex = 0;
@@ -1870,7 +1622,6 @@ export default class RemoteSteamUser {
1870
1622
  return result;
1871
1623
  } catch (e) {}
1872
1624
  }
1873
-
1874
1625
  async getOwnedAppsID() {
1875
1626
  if (!RemoteSteamUser.__appIndex) {
1876
1627
  RemoteSteamUser.__appIndex = 0;
@@ -1896,7 +1647,6 @@ export default class RemoteSteamUser {
1896
1647
  return result;
1897
1648
  } catch (e) {}
1898
1649
  }
1899
-
1900
1650
  async getDynamicStoreUserData() {
1901
1651
  if (!RemoteSteamUser.__appIndex) {
1902
1652
  RemoteSteamUser.__appIndex = 0;
@@ -1922,7 +1672,6 @@ export default class RemoteSteamUser {
1922
1672
  return result;
1923
1673
  } catch (e) {}
1924
1674
  }
1925
-
1926
1675
  async getListGroupInvitable(userSteamID) {
1927
1676
  if (!RemoteSteamUser.__appIndex) {
1928
1677
  RemoteSteamUser.__appIndex = 0;
@@ -1948,7 +1697,6 @@ export default class RemoteSteamUser {
1948
1697
  return result;
1949
1698
  } catch (e) {}
1950
1699
  }
1951
-
1952
1700
  async inviteUserToGroup(userSteamIDs, groupSteamID) {
1953
1701
  if (!RemoteSteamUser.__appIndex) {
1954
1702
  RemoteSteamUser.__appIndex = 0;
@@ -1974,7 +1722,6 @@ export default class RemoteSteamUser {
1974
1722
  return result;
1975
1723
  } catch (e) {}
1976
1724
  }
1977
-
1978
1725
  async inviteAllFriendToGroup(groupSteamID) {
1979
1726
  if (!RemoteSteamUser.__appIndex) {
1980
1727
  RemoteSteamUser.__appIndex = 0;
@@ -2000,7 +1747,6 @@ export default class RemoteSteamUser {
2000
1747
  return result;
2001
1748
  } catch (e) {}
2002
1749
  }
2003
-
2004
1750
  async _respondToGroupInvite(groupSteamID, accept) {
2005
1751
  if (!RemoteSteamUser.__appIndex) {
2006
1752
  RemoteSteamUser.__appIndex = 0;
@@ -2026,7 +1772,6 @@ export default class RemoteSteamUser {
2026
1772
  return result;
2027
1773
  } catch (e) {}
2028
1774
  }
2029
-
2030
1775
  async acceptInviteUserToGroup(groupSteamID) {
2031
1776
  if (!RemoteSteamUser.__appIndex) {
2032
1777
  RemoteSteamUser.__appIndex = 0;
@@ -2052,7 +1797,6 @@ export default class RemoteSteamUser {
2052
1797
  return result;
2053
1798
  } catch (e) {}
2054
1799
  }
2055
-
2056
1800
  async ignoreInviteUserToGroup(groupSteamID) {
2057
1801
  if (!RemoteSteamUser.__appIndex) {
2058
1802
  RemoteSteamUser.__appIndex = 0;
@@ -2078,7 +1822,6 @@ export default class RemoteSteamUser {
2078
1822
  return result;
2079
1823
  } catch (e) {}
2080
1824
  }
2081
-
2082
1825
  async leaveGroup(groupSteamID) {
2083
1826
  if (!RemoteSteamUser.__appIndex) {
2084
1827
  RemoteSteamUser.__appIndex = 0;
@@ -2104,7 +1847,6 @@ export default class RemoteSteamUser {
2104
1847
  return result;
2105
1848
  } catch (e) {}
2106
1849
  }
2107
-
2108
1850
  async joinGroup(groupSteamID) {
2109
1851
  if (!RemoteSteamUser.__appIndex) {
2110
1852
  RemoteSteamUser.__appIndex = 0;
@@ -2130,8 +1872,7 @@ export default class RemoteSteamUser {
2130
1872
  return result;
2131
1873
  } catch (e) {}
2132
1874
  }
2133
-
2134
- async getFriendsInCommon(steamID) {
1875
+ async getFriendsInCommon(steamId) {
2135
1876
  if (!RemoteSteamUser.__appIndex) {
2136
1877
  RemoteSteamUser.__appIndex = 0;
2137
1878
  }
@@ -2140,7 +1881,7 @@ export default class RemoteSteamUser {
2140
1881
  RemoteSteamUser.__appIndex = 0;
2141
1882
  }
2142
1883
 
2143
- const __params = [steamID];
1884
+ const __params = [steamId];
2144
1885
  if (__params.length === 1 && __params[0] === undefined) {
2145
1886
  __params.length = 0;
2146
1887
  }
@@ -2156,7 +1897,6 @@ export default class RemoteSteamUser {
2156
1897
  return result;
2157
1898
  } catch (e) {}
2158
1899
  }
2159
-
2160
1900
  async getFriendsInGroup(groupID) {
2161
1901
  if (!RemoteSteamUser.__appIndex) {
2162
1902
  RemoteSteamUser.__appIndex = 0;
@@ -2182,7 +1922,6 @@ export default class RemoteSteamUser {
2182
1922
  return result;
2183
1923
  } catch (e) {}
2184
1924
  }
2185
-
2186
1925
  async _parseSteamWebAPIKey($) {
2187
1926
  if (!RemoteSteamUser.__appIndex) {
2188
1927
  RemoteSteamUser.__appIndex = 0;
@@ -2208,7 +1947,6 @@ export default class RemoteSteamUser {
2208
1947
  return result;
2209
1948
  } catch (e) {}
2210
1949
  }
2211
-
2212
1950
  async getSteamWebAPIKey(domain) {
2213
1951
  if (!RemoteSteamUser.__appIndex) {
2214
1952
  RemoteSteamUser.__appIndex = 0;
@@ -2234,7 +1972,6 @@ export default class RemoteSteamUser {
2234
1972
  return result;
2235
1973
  } catch (e) {}
2236
1974
  }
2237
-
2238
1975
  async revokeSteamWebAPIKey() {
2239
1976
  if (!RemoteSteamUser.__appIndex) {
2240
1977
  RemoteSteamUser.__appIndex = 0;
@@ -2260,7 +1997,6 @@ export default class RemoteSteamUser {
2260
1997
  return result;
2261
1998
  } catch (e) {}
2262
1999
  }
2263
-
2264
2000
  async _parsePlayerListFromblotter_daily_rollup_line($, contentEl) {
2265
2001
  if (!RemoteSteamUser.__appIndex) {
2266
2002
  RemoteSteamUser.__appIndex = 0;
@@ -2286,7 +2022,6 @@ export default class RemoteSteamUser {
2286
2022
  return result;
2287
2023
  } catch (e) {}
2288
2024
  }
2289
-
2290
2025
  async _parseAppIDFromLink(link) {
2291
2026
  if (!RemoteSteamUser.__appIndex) {
2292
2027
  RemoteSteamUser.__appIndex = 0;
@@ -2312,7 +2047,6 @@ export default class RemoteSteamUser {
2312
2047
  return result;
2313
2048
  } catch (e) {}
2314
2049
  }
2315
-
2316
2050
  async _parseAppListFromBlotter($, contentEl) {
2317
2051
  if (!RemoteSteamUser.__appIndex) {
2318
2052
  RemoteSteamUser.__appIndex = 0;
@@ -2338,7 +2072,6 @@ export default class RemoteSteamUser {
2338
2072
  return result;
2339
2073
  } catch (e) {}
2340
2074
  }
2341
-
2342
2075
  async _parseAchievedblotter_daily_rollup_line($, contentEl) {
2343
2076
  if (!RemoteSteamUser.__appIndex) {
2344
2077
  RemoteSteamUser.__appIndex = 0;
@@ -2364,7 +2097,6 @@ export default class RemoteSteamUser {
2364
2097
  return result;
2365
2098
  } catch (e) {}
2366
2099
  }
2367
-
2368
2100
  async _parseGroupListFromblotter_daily_rollup_line($, contentEl) {
2369
2101
  if (!RemoteSteamUser.__appIndex) {
2370
2102
  RemoteSteamUser.__appIndex = 0;
@@ -2390,7 +2122,6 @@ export default class RemoteSteamUser {
2390
2122
  return result;
2391
2123
  } catch (e) {}
2392
2124
  }
2393
-
2394
2125
  async _parseBlotterDailyRollup($, blotterBlockEl) {
2395
2126
  if (!RemoteSteamUser.__appIndex) {
2396
2127
  RemoteSteamUser.__appIndex = 0;
@@ -2416,7 +2147,6 @@ export default class RemoteSteamUser {
2416
2147
  return result;
2417
2148
  } catch (e) {}
2418
2149
  }
2419
-
2420
2150
  async _parseBlotterGamepurchase($, blotterBlockEl) {
2421
2151
  if (!RemoteSteamUser.__appIndex) {
2422
2152
  RemoteSteamUser.__appIndex = 0;
@@ -2442,7 +2172,6 @@ export default class RemoteSteamUser {
2442
2172
  return result;
2443
2173
  } catch (e) {}
2444
2174
  }
2445
-
2446
2175
  async getFriendActivity(start_or_url) {
2447
2176
  if (!RemoteSteamUser.__appIndex) {
2448
2177
  RemoteSteamUser.__appIndex = 0;
@@ -2468,7 +2197,81 @@ export default class RemoteSteamUser {
2468
2197
  return result;
2469
2198
  } catch (e) {}
2470
2199
  }
2200
+ async commentUserReceivedNewGame({ steamId, threadId, comment }) {
2201
+ if (!RemoteSteamUser.__appIndex) {
2202
+ RemoteSteamUser.__appIndex = 0;
2203
+ }
2204
+ RemoteSteamUser.__appIndex++;
2205
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2206
+ RemoteSteamUser.__appIndex = 0;
2207
+ }
2471
2208
 
2209
+ const __params = [{ steamId, threadId, comment }];
2210
+ if (__params.length === 1 && __params[0] === undefined) {
2211
+ __params.length = 0;
2212
+ }
2213
+
2214
+ try {
2215
+ const result = (
2216
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2217
+ method: "commentUserReceivedNewGame",
2218
+ params: __params,
2219
+ cookies: this._cookies,
2220
+ })
2221
+ ).data?.result;
2222
+ return result;
2223
+ } catch (e) {}
2224
+ }
2225
+ async rateUpUserReceivedNewGame({ steamId, threadId }) {
2226
+ if (!RemoteSteamUser.__appIndex) {
2227
+ RemoteSteamUser.__appIndex = 0;
2228
+ }
2229
+ RemoteSteamUser.__appIndex++;
2230
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2231
+ RemoteSteamUser.__appIndex = 0;
2232
+ }
2233
+
2234
+ const __params = [{ steamId, threadId }];
2235
+ if (__params.length === 1 && __params[0] === undefined) {
2236
+ __params.length = 0;
2237
+ }
2238
+
2239
+ try {
2240
+ const result = (
2241
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2242
+ method: "rateUpUserReceivedNewGame",
2243
+ params: __params,
2244
+ cookies: this._cookies,
2245
+ })
2246
+ ).data?.result;
2247
+ return result;
2248
+ } catch (e) {}
2249
+ }
2250
+ async deleteCommendUserReceivedNewGame({ steamId, threadId, commendId }) {
2251
+ if (!RemoteSteamUser.__appIndex) {
2252
+ RemoteSteamUser.__appIndex = 0;
2253
+ }
2254
+ RemoteSteamUser.__appIndex++;
2255
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2256
+ RemoteSteamUser.__appIndex = 0;
2257
+ }
2258
+
2259
+ const __params = [{ steamId, threadId, commendId }];
2260
+ if (__params.length === 1 && __params[0] === undefined) {
2261
+ __params.length = 0;
2262
+ }
2263
+
2264
+ try {
2265
+ const result = (
2266
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2267
+ method: "deleteCommendUserReceivedNewGame",
2268
+ params: __params,
2269
+ cookies: this._cookies,
2270
+ })
2271
+ ).data?.result;
2272
+ return result;
2273
+ } catch (e) {}
2274
+ }
2472
2275
  async getFriendActivityFull({ cbOnActivity, cbOnActivities }) {
2473
2276
  if (!RemoteSteamUser.__appIndex) {
2474
2277
  RemoteSteamUser.__appIndex = 0;
@@ -2478,12 +2281,7 @@ export default class RemoteSteamUser {
2478
2281
  RemoteSteamUser.__appIndex = 0;
2479
2282
  }
2480
2283
 
2481
- const __params = [
2482
- {
2483
- cbOnActivity,
2484
- cbOnActivities,
2485
- },
2486
- ];
2284
+ const __params = [{ cbOnActivity, cbOnActivities }];
2487
2285
  if (__params.length === 1 && __params[0] === undefined) {
2488
2286
  __params.length = 0;
2489
2287
  }
@@ -2499,7 +2297,6 @@ export default class RemoteSteamUser {
2499
2297
  return result;
2500
2298
  } catch (e) {}
2501
2299
  }
2502
-
2503
2300
  async searchSteamUserByName(text, page) {
2504
2301
  if (!RemoteSteamUser.__appIndex) {
2505
2302
  RemoteSteamUser.__appIndex = 0;
@@ -2525,7 +2322,6 @@ export default class RemoteSteamUser {
2525
2322
  return result;
2526
2323
  } catch (e) {}
2527
2324
  }
2528
-
2529
2325
  async getMyGroupsList() {
2530
2326
  if (!RemoteSteamUser.__appIndex) {
2531
2327
  RemoteSteamUser.__appIndex = 0;
@@ -2551,8 +2347,7 @@ export default class RemoteSteamUser {
2551
2347
  return result;
2552
2348
  } catch (e) {}
2553
2349
  }
2554
-
2555
- async getUserGroupsList(steamID) {
2350
+ async getUserGroupsList(steamId) {
2556
2351
  if (!RemoteSteamUser.__appIndex) {
2557
2352
  RemoteSteamUser.__appIndex = 0;
2558
2353
  }
@@ -2561,7 +2356,7 @@ export default class RemoteSteamUser {
2561
2356
  RemoteSteamUser.__appIndex = 0;
2562
2357
  }
2563
2358
 
2564
- const __params = [steamID];
2359
+ const __params = [steamId];
2565
2360
  if (__params.length === 1 && __params[0] === undefined) {
2566
2361
  __params.length = 0;
2567
2362
  }
@@ -2577,7 +2372,6 @@ export default class RemoteSteamUser {
2577
2372
  return result;
2578
2373
  } catch (e) {}
2579
2374
  }
2580
-
2581
2375
  async getNotifications() {
2582
2376
  if (!RemoteSteamUser.__appIndex) {
2583
2377
  RemoteSteamUser.__appIndex = 0;
@@ -2603,7 +2397,6 @@ export default class RemoteSteamUser {
2603
2397
  return result;
2604
2398
  } catch (e) {}
2605
2399
  }
2606
-
2607
2400
  async addFreeLicense(packageID) {
2608
2401
  if (!RemoteSteamUser.__appIndex) {
2609
2402
  RemoteSteamUser.__appIndex = 0;
@@ -2629,7 +2422,6 @@ export default class RemoteSteamUser {
2629
2422
  return result;
2630
2423
  } catch (e) {}
2631
2424
  }
2632
-
2633
2425
  async addSubFreeLicense(subid) {
2634
2426
  if (!RemoteSteamUser.__appIndex) {
2635
2427
  RemoteSteamUser.__appIndex = 0;
@@ -2655,7 +2447,6 @@ export default class RemoteSteamUser {
2655
2447
  return result;
2656
2448
  } catch (e) {}
2657
2449
  }
2658
-
2659
2450
  async getCurrentSteamLogin() {
2660
2451
  if (!RemoteSteamUser.__appIndex) {
2661
2452
  RemoteSteamUser.__appIndex = 0;
@@ -2681,7 +2472,6 @@ export default class RemoteSteamUser {
2681
2472
  return result;
2682
2473
  } catch (e) {}
2683
2474
  }
2684
-
2685
2475
  async setLanguagePreferences() {
2686
2476
  if (!RemoteSteamUser.__appIndex) {
2687
2477
  RemoteSteamUser.__appIndex = 0;
@@ -2707,7 +2497,6 @@ export default class RemoteSteamUser {
2707
2497
  return result;
2708
2498
  } catch (e) {}
2709
2499
  }
2710
-
2711
2500
  async ChangeLanguage() {
2712
2501
  if (!RemoteSteamUser.__appIndex) {
2713
2502
  RemoteSteamUser.__appIndex = 0;
@@ -2733,7 +2522,6 @@ export default class RemoteSteamUser {
2733
2522
  return result;
2734
2523
  } catch (e) {}
2735
2524
  }
2736
-
2737
2525
  async getCompetitiveCooldownLevel() {
2738
2526
  if (!RemoteSteamUser.__appIndex) {
2739
2527
  RemoteSteamUser.__appIndex = 0;
@@ -2759,7 +2547,6 @@ export default class RemoteSteamUser {
2759
2547
  return result;
2760
2548
  } catch (e) {}
2761
2549
  }
2762
-
2763
2550
  async getPersonalGameDataAccountInformation() {
2764
2551
  if (!RemoteSteamUser.__appIndex) {
2765
2552
  RemoteSteamUser.__appIndex = 0;
@@ -2785,7 +2572,6 @@ export default class RemoteSteamUser {
2785
2572
  return result;
2786
2573
  } catch (e) {}
2787
2574
  }
2788
-
2789
2575
  async resolveUsers(steamIDs) {
2790
2576
  if (!RemoteSteamUser.__appIndex) {
2791
2577
  RemoteSteamUser.__appIndex = 0;
@@ -2811,7 +2597,6 @@ export default class RemoteSteamUser {
2811
2597
  return result;
2812
2598
  } catch (e) {}
2813
2599
  }
2814
-
2815
2600
  async testFullLanguage(cb) {
2816
2601
  if (!RemoteSteamUser.__appIndex) {
2817
2602
  RemoteSteamUser.__appIndex = 0;
@@ -2837,8 +2622,7 @@ export default class RemoteSteamUser {
2837
2622
  return result;
2838
2623
  } catch (e) {}
2839
2624
  }
2840
-
2841
- async testNotYetSetupTextList(steamID) {
2625
+ async testNotYetSetupTextList(steamId) {
2842
2626
  if (!RemoteSteamUser.__appIndex) {
2843
2627
  RemoteSteamUser.__appIndex = 0;
2844
2628
  }
@@ -2847,7 +2631,7 @@ export default class RemoteSteamUser {
2847
2631
  RemoteSteamUser.__appIndex = 0;
2848
2632
  }
2849
2633
 
2850
- const __params = [steamID];
2634
+ const __params = [steamId];
2851
2635
  if (__params.length === 1 && __params[0] === undefined) {
2852
2636
  __params.length = 0;
2853
2637
  }
@@ -2863,8 +2647,7 @@ export default class RemoteSteamUser {
2863
2647
  return result;
2864
2648
  } catch (e) {}
2865
2649
  }
2866
-
2867
- async testPrivateText(steamID) {
2650
+ async testPrivateText(steamId) {
2868
2651
  if (!RemoteSteamUser.__appIndex) {
2869
2652
  RemoteSteamUser.__appIndex = 0;
2870
2653
  }
@@ -2873,7 +2656,7 @@ export default class RemoteSteamUser {
2873
2656
  RemoteSteamUser.__appIndex = 0;
2874
2657
  }
2875
2658
 
2876
- const __params = [steamID];
2659
+ const __params = [steamId];
2877
2660
  if (__params.length === 1 && __params[0] === undefined) {
2878
2661
  __params.length = 0;
2879
2662
  }
@@ -2889,8 +2672,7 @@ export default class RemoteSteamUser {
2889
2672
  return result;
2890
2673
  } catch (e) {}
2891
2674
  }
2892
-
2893
- async testGameBan(steamID) {
2675
+ async testGameBan(steamId) {
2894
2676
  if (!RemoteSteamUser.__appIndex) {
2895
2677
  RemoteSteamUser.__appIndex = 0;
2896
2678
  }
@@ -2899,7 +2681,7 @@ export default class RemoteSteamUser {
2899
2681
  RemoteSteamUser.__appIndex = 0;
2900
2682
  }
2901
2683
 
2902
- const __params = [steamID];
2684
+ const __params = [steamId];
2903
2685
  if (__params.length === 1 && __params[0] === undefined) {
2904
2686
  __params.length = 0;
2905
2687
  }
@@ -2915,7 +2697,6 @@ export default class RemoteSteamUser {
2915
2697
  return result;
2916
2698
  } catch (e) {}
2917
2699
  }
2918
-
2919
2700
  async getSteamGuardStatus() {
2920
2701
  if (!RemoteSteamUser.__appIndex) {
2921
2702
  RemoteSteamUser.__appIndex = 0;
@@ -2941,7 +2722,6 @@ export default class RemoteSteamUser {
2941
2722
  return result;
2942
2723
  } catch (e) {}
2943
2724
  }
2944
-
2945
2725
  async turningSteamGuardOff() {
2946
2726
  if (!RemoteSteamUser.__appIndex) {
2947
2727
  RemoteSteamUser.__appIndex = 0;
@@ -2967,7 +2747,6 @@ export default class RemoteSteamUser {
2967
2747
  return result;
2968
2748
  } catch (e) {}
2969
2749
  }
2970
-
2971
2750
  async turningEmailAuthenticatorCheckOn() {
2972
2751
  if (!RemoteSteamUser.__appIndex) {
2973
2752
  RemoteSteamUser.__appIndex = 0;
@@ -2993,7 +2772,6 @@ export default class RemoteSteamUser {
2993
2772
  return result;
2994
2773
  } catch (e) {}
2995
2774
  }
2996
-
2997
2775
  async getPhoneManage() {
2998
2776
  if (!RemoteSteamUser.__appIndex) {
2999
2777
  RemoteSteamUser.__appIndex = 0;
@@ -3019,7 +2797,6 @@ export default class RemoteSteamUser {
3019
2797
  return result;
3020
2798
  } catch (e) {}
3021
2799
  }
3022
-
3023
2800
  async addPhoneNumber(phone) {
3024
2801
  if (!RemoteSteamUser.__appIndex) {
3025
2802
  RemoteSteamUser.__appIndex = 0;
@@ -3045,7 +2822,6 @@ export default class RemoteSteamUser {
3045
2822
  return result;
3046
2823
  } catch (e) {}
3047
2824
  }
3048
-
3049
2825
  async sendOtpConfirmPhoneForAdd() {
3050
2826
  if (!RemoteSteamUser.__appIndex) {
3051
2827
  RemoteSteamUser.__appIndex = 0;
@@ -3071,7 +2847,6 @@ export default class RemoteSteamUser {
3071
2847
  return result;
3072
2848
  } catch (e) {}
3073
2849
  }
3074
-
3075
2850
  async confirmPhoneCodeForAdd(code) {
3076
2851
  if (!RemoteSteamUser.__appIndex) {
3077
2852
  RemoteSteamUser.__appIndex = 0;
@@ -3097,7 +2872,6 @@ export default class RemoteSteamUser {
3097
2872
  return result;
3098
2873
  } catch (e) {}
3099
2874
  }
3100
-
3101
2875
  async removePhoneNumber() {
3102
2876
  if (!RemoteSteamUser.__appIndex) {
3103
2877
  RemoteSteamUser.__appIndex = 0;
@@ -3123,7 +2897,6 @@ export default class RemoteSteamUser {
3123
2897
  return result;
3124
2898
  } catch (e) {}
3125
2899
  }
3126
-
3127
2900
  async removePhoneNumberConfirmOptCode(s, code) {
3128
2901
  if (!RemoteSteamUser.__appIndex) {
3129
2902
  RemoteSteamUser.__appIndex = 0;
@@ -3149,7 +2922,6 @@ export default class RemoteSteamUser {
3149
2922
  return result;
3150
2923
  } catch (e) {}
3151
2924
  }
3152
-
3153
2925
  async getAccountEmail() {
3154
2926
  if (!RemoteSteamUser.__appIndex) {
3155
2927
  RemoteSteamUser.__appIndex = 0;
@@ -3175,7 +2947,6 @@ export default class RemoteSteamUser {
3175
2947
  return result;
3176
2948
  } catch (e) {}
3177
2949
  }
3178
-
3179
2950
  async getInventory(appID) {
3180
2951
  if (!RemoteSteamUser.__appIndex) {
3181
2952
  RemoteSteamUser.__appIndex = 0;
@@ -3201,7 +2972,6 @@ export default class RemoteSteamUser {
3201
2972
  return result;
3202
2973
  } catch (e) {}
3203
2974
  }
3204
-
3205
2975
  async getInventoryTrading(appID, contextid) {
3206
2976
  if (!RemoteSteamUser.__appIndex) {
3207
2977
  RemoteSteamUser.__appIndex = 0;
@@ -3227,7 +2997,6 @@ export default class RemoteSteamUser {
3227
2997
  return result;
3228
2998
  } catch (e) {}
3229
2999
  }
3230
-
3231
3000
  async getInventoryTradingPartner(appID, partner, contextid) {
3232
3001
  if (!RemoteSteamUser.__appIndex) {
3233
3002
  RemoteSteamUser.__appIndex = 0;
@@ -3253,7 +3022,6 @@ export default class RemoteSteamUser {
3253
3022
  return result;
3254
3023
  } catch (e) {}
3255
3024
  }
3256
-
3257
3025
  async getFullInventoryHistory() {
3258
3026
  if (!RemoteSteamUser.__appIndex) {
3259
3027
  RemoteSteamUser.__appIndex = 0;
@@ -3279,7 +3047,6 @@ export default class RemoteSteamUser {
3279
3047
  return result;
3280
3048
  } catch (e) {}
3281
3049
  }
3282
-
3283
3050
  async getInventoryHistory(cursor) {
3284
3051
  if (!RemoteSteamUser.__appIndex) {
3285
3052
  RemoteSteamUser.__appIndex = 0;
@@ -3305,7 +3072,6 @@ export default class RemoteSteamUser {
3305
3072
  return result;
3306
3073
  } catch (e) {}
3307
3074
  }
3308
-
3309
3075
  async getTradeURL() {
3310
3076
  if (!RemoteSteamUser.__appIndex) {
3311
3077
  RemoteSteamUser.__appIndex = 0;
@@ -3331,7 +3097,6 @@ export default class RemoteSteamUser {
3331
3097
  return result;
3332
3098
  } catch (e) {}
3333
3099
  }
3334
-
3335
3100
  async sendTradeOffer({ tradeURL, myAssets, theirAssets, tradeoffermessage }) {
3336
3101
  if (!RemoteSteamUser.__appIndex) {
3337
3102
  RemoteSteamUser.__appIndex = 0;
@@ -3357,7 +3122,6 @@ export default class RemoteSteamUser {
3357
3122
  return result;
3358
3123
  } catch (e) {}
3359
3124
  }
3360
-
3361
3125
  async acceptTradeOffer(tradeOfferID, partnerSteamId) {
3362
3126
  if (!RemoteSteamUser.__appIndex) {
3363
3127
  RemoteSteamUser.__appIndex = 0;
@@ -3383,7 +3147,6 @@ export default class RemoteSteamUser {
3383
3147
  return result;
3384
3148
  } catch (e) {}
3385
3149
  }
3386
-
3387
3150
  async declineTradeOffer(tradeOfferID, partnerSteamId) {
3388
3151
  if (!RemoteSteamUser.__appIndex) {
3389
3152
  RemoteSteamUser.__appIndex = 0;
@@ -3409,7 +3172,6 @@ export default class RemoteSteamUser {
3409
3172
  return result;
3410
3173
  } catch (e) {}
3411
3174
  }
3412
-
3413
3175
  async getTradeOffer() {
3414
3176
  if (!RemoteSteamUser.__appIndex) {
3415
3177
  RemoteSteamUser.__appIndex = 0;
@@ -3435,7 +3197,6 @@ export default class RemoteSteamUser {
3435
3197
  return result;
3436
3198
  } catch (e) {}
3437
3199
  }
3438
-
3439
3200
  async uploadAvatar(filePath) {
3440
3201
  if (!RemoteSteamUser.__appIndex) {
3441
3202
  RemoteSteamUser.__appIndex = 0;
@@ -3461,7 +3222,6 @@ export default class RemoteSteamUser {
3461
3222
  return result;
3462
3223
  } catch (e) {}
3463
3224
  }
3464
-
3465
3225
  async selectPreviousAvatar(avatarHash) {
3466
3226
  if (!RemoteSteamUser.__appIndex) {
3467
3227
  RemoteSteamUser.__appIndex = 0;
@@ -3487,7 +3247,6 @@ export default class RemoteSteamUser {
3487
3247
  return result;
3488
3248
  } catch (e) {}
3489
3249
  }
3490
-
3491
3250
  async getMiniprofile(steamId) {
3492
3251
  if (!RemoteSteamUser.__appIndex) {
3493
3252
  RemoteSteamUser.__appIndex = 0;
@@ -3513,7 +3272,6 @@ export default class RemoteSteamUser {
3513
3272
  return result;
3514
3273
  } catch (e) {}
3515
3274
  }
3516
-
3517
3275
  async deauthorizeAllDevices() {
3518
3276
  if (!RemoteSteamUser.__appIndex) {
3519
3277
  RemoteSteamUser.__appIndex = 0;
@@ -3539,7 +3297,6 @@ export default class RemoteSteamUser {
3539
3297
  return result;
3540
3298
  } catch (e) {}
3541
3299
  }
3542
-
3543
3300
  async getMarketUnavailable() {
3544
3301
  if (!RemoteSteamUser.__appIndex) {
3545
3302
  RemoteSteamUser.__appIndex = 0;
@@ -3565,7 +3322,6 @@ export default class RemoteSteamUser {
3565
3322
  return result;
3566
3323
  } catch (e) {}
3567
3324
  }
3568
-
3569
3325
  async getAmountSpentOnSteam() {
3570
3326
  if (!RemoteSteamUser.__appIndex) {
3571
3327
  RemoteSteamUser.__appIndex = 0;
@@ -3591,7 +3347,6 @@ export default class RemoteSteamUser {
3591
3347
  return result;
3592
3348
  } catch (e) {}
3593
3349
  }
3594
-
3595
3350
  async sellItem({ appid, contextid, assetid, amount, price }) {
3596
3351
  if (!RemoteSteamUser.__appIndex) {
3597
3352
  RemoteSteamUser.__appIndex = 0;
@@ -3601,15 +3356,7 @@ export default class RemoteSteamUser {
3601
3356
  RemoteSteamUser.__appIndex = 0;
3602
3357
  }
3603
3358
 
3604
- const __params = [
3605
- {
3606
- appid,
3607
- contextid,
3608
- assetid,
3609
- amount,
3610
- price,
3611
- },
3612
- ];
3359
+ const __params = [{ appid, contextid, assetid, amount, price }];
3613
3360
  if (__params.length === 1 && __params[0] === undefined) {
3614
3361
  __params.length = 0;
3615
3362
  }
@@ -3625,7 +3372,6 @@ export default class RemoteSteamUser {
3625
3372
  return result;
3626
3373
  } catch (e) {}
3627
3374
  }
3628
-
3629
3375
  async removeListing(id) {
3630
3376
  if (!RemoteSteamUser.__appIndex) {
3631
3377
  RemoteSteamUser.__appIndex = 0;
@@ -3651,7 +3397,6 @@ export default class RemoteSteamUser {
3651
3397
  return result;
3652
3398
  } catch (e) {}
3653
3399
  }
3654
-
3655
3400
  async getMyListings() {
3656
3401
  if (!RemoteSteamUser.__appIndex) {
3657
3402
  RemoteSteamUser.__appIndex = 0;
@@ -3677,7 +3422,6 @@ export default class RemoteSteamUser {
3677
3422
  return result;
3678
3423
  } catch (e) {}
3679
3424
  }
3680
-
3681
3425
  async getPlayerReports(token) {
3682
3426
  if (!RemoteSteamUser.__appIndex) {
3683
3427
  RemoteSteamUser.__appIndex = 0;
@@ -3703,7 +3447,6 @@ export default class RemoteSteamUser {
3703
3447
  return result;
3704
3448
  } catch (e) {}
3705
3449
  }
3706
-
3707
3450
  async getAllPlayerReports(onPageCb) {
3708
3451
  if (!RemoteSteamUser.__appIndex) {
3709
3452
  RemoteSteamUser.__appIndex = 0;
@@ -3729,7 +3472,6 @@ export default class RemoteSteamUser {
3729
3472
  return result;
3730
3473
  } catch (e) {}
3731
3474
  }
3732
-
3733
3475
  async beginFileUpload(filePath) {
3734
3476
  if (!RemoteSteamUser.__appIndex) {
3735
3477
  RemoteSteamUser.__appIndex = 0;
@@ -3755,7 +3497,6 @@ export default class RemoteSteamUser {
3755
3497
  return result;
3756
3498
  } catch (e) {}
3757
3499
  }
3758
-
3759
3500
  async doFileUpload({ filePath, beginFileUploadResult }) {
3760
3501
  if (!RemoteSteamUser.__appIndex) {
3761
3502
  RemoteSteamUser.__appIndex = 0;
@@ -3765,12 +3506,7 @@ export default class RemoteSteamUser {
3765
3506
  RemoteSteamUser.__appIndex = 0;
3766
3507
  }
3767
3508
 
3768
- const __params = [
3769
- {
3770
- filePath,
3771
- beginFileUploadResult,
3772
- },
3773
- ];
3509
+ const __params = [{ filePath, beginFileUploadResult }];
3774
3510
  if (__params.length === 1 && __params[0] === undefined) {
3775
3511
  __params.length = 0;
3776
3512
  }
@@ -3786,7 +3522,6 @@ export default class RemoteSteamUser {
3786
3522
  return result;
3787
3523
  } catch (e) {}
3788
3524
  }
3789
-
3790
3525
  async commitFileUpload({ file_name, file_sha, file_image_width, file_image_height, file_type, hmac, timestamp, ugcid, friend_steamid }) {
3791
3526
  if (!RemoteSteamUser.__appIndex) {
3792
3527
  RemoteSteamUser.__appIndex = 0;
@@ -3796,19 +3531,7 @@ export default class RemoteSteamUser {
3796
3531
  RemoteSteamUser.__appIndex = 0;
3797
3532
  }
3798
3533
 
3799
- const __params = [
3800
- {
3801
- file_name,
3802
- file_sha,
3803
- file_image_width,
3804
- file_image_height,
3805
- file_type,
3806
- hmac,
3807
- timestamp,
3808
- ugcid,
3809
- friend_steamid,
3810
- },
3811
- ];
3534
+ const __params = [{ file_name, file_sha, file_image_width, file_image_height, file_type, hmac, timestamp, ugcid, friend_steamid }];
3812
3535
  if (__params.length === 1 && __params[0] === undefined) {
3813
3536
  __params.length = 0;
3814
3537
  }
@@ -3824,7 +3547,6 @@ export default class RemoteSteamUser {
3824
3547
  return result;
3825
3548
  } catch (e) {}
3826
3549
  }
3827
-
3828
3550
  async sendImageMessage({ imagePath, friend_steamid }) {
3829
3551
  if (!RemoteSteamUser.__appIndex) {
3830
3552
  RemoteSteamUser.__appIndex = 0;
@@ -3834,12 +3556,7 @@ export default class RemoteSteamUser {
3834
3556
  RemoteSteamUser.__appIndex = 0;
3835
3557
  }
3836
3558
 
3837
- const __params = [
3838
- {
3839
- imagePath,
3840
- friend_steamid,
3841
- },
3842
- ];
3559
+ const __params = [{ imagePath, friend_steamid }];
3843
3560
  if (__params.length === 1 && __params[0] === undefined) {
3844
3561
  __params.length = 0;
3845
3562
  }
@@ -3855,4 +3572,54 @@ export default class RemoteSteamUser {
3855
3572
  return result;
3856
3573
  } catch (e) {}
3857
3574
  }
3575
+ async isAlive() {
3576
+ if (!RemoteSteamUser.__appIndex) {
3577
+ RemoteSteamUser.__appIndex = 0;
3578
+ }
3579
+ RemoteSteamUser.__appIndex++;
3580
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3581
+ RemoteSteamUser.__appIndex = 0;
3582
+ }
3583
+
3584
+ const __params = [];
3585
+ if (__params.length === 1 && __params[0] === undefined) {
3586
+ __params.length = 0;
3587
+ }
3588
+
3589
+ try {
3590
+ const result = (
3591
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3592
+ method: "isAlive",
3593
+ params: __params,
3594
+ cookies: this._cookies,
3595
+ })
3596
+ ).data?.result;
3597
+ return result;
3598
+ } catch (e) {}
3599
+ }
3600
+ async getAccountDetail() {
3601
+ if (!RemoteSteamUser.__appIndex) {
3602
+ RemoteSteamUser.__appIndex = 0;
3603
+ }
3604
+ RemoteSteamUser.__appIndex++;
3605
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3606
+ RemoteSteamUser.__appIndex = 0;
3607
+ }
3608
+
3609
+ const __params = [];
3610
+ if (__params.length === 1 && __params[0] === undefined) {
3611
+ __params.length = 0;
3612
+ }
3613
+
3614
+ try {
3615
+ const result = (
3616
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3617
+ method: "getAccountDetail",
3618
+ params: __params,
3619
+ cookies: this._cookies,
3620
+ })
3621
+ ).data?.result;
3622
+ return result;
3623
+ } catch (e) {}
3624
+ }
3858
3625
  }