stormgate_world 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +141 -0
- data/Rakefile +10 -0
- data/docs/ErrorResponse.md +26 -0
- data/docs/Leaderboard.md +15 -0
- data/docs/LeaderboardDumpResponse.md +22 -0
- data/docs/LeaderboardEntriesApi.md +70 -0
- data/docs/LeaderboardEntryHistory.md +18 -0
- data/docs/LeaderboardEntryHistoryEntry.md +24 -0
- data/docs/LeaderboardEntryResponse.md +52 -0
- data/docs/LeaderboardOrder.md +15 -0
- data/docs/LeaderboardResponse.md +24 -0
- data/docs/LeaderboardsApi.md +140 -0
- data/docs/MatchParticipantPlayerLeaderboardEntryResponse.md +32 -0
- data/docs/MatchParticipantPlayerResponse.md +22 -0
- data/docs/MatchParticipantResponse.md +38 -0
- data/docs/MatchResponse.md +34 -0
- data/docs/MatchResult.md +15 -0
- data/docs/MatchState.md +15 -0
- data/docs/MatchesApi.md +76 -0
- data/docs/MatchesResponse.md +24 -0
- data/docs/PlayerActivityStats.md +24 -0
- data/docs/PlayerActivityStatsRace.md +20 -0
- data/docs/PlayerMatchesResponse.md +22 -0
- data/docs/PlayerMatchupsStats.md +20 -0
- data/docs/PlayerMatchupsStatsEntry.md +34 -0
- data/docs/PlayerMatchupsStatsMatchup.md +24 -0
- data/docs/PlayerOpponentsStats.md +22 -0
- data/docs/PlayerOpponentsStatsOpponent.md +34 -0
- data/docs/PlayerPreferences.md +18 -0
- data/docs/PlayerResponse.md +28 -0
- data/docs/PlayerStatsEntry.md +36 -0
- data/docs/PlayerStatsEntryAggregated.md +34 -0
- data/docs/PlayerStatsEntryNumBreakdown.md +24 -0
- data/docs/PlayersApi.md +531 -0
- data/docs/ProfilePrivacy.md +15 -0
- data/docs/Race.md +15 -0
- data/docs/StatisticsApi.md +72 -0
- data/docs/StatsByTime.md +30 -0
- data/docs/StatsByTimeEntry.md +22 -0
- data/docs/StatsByTimeHistoryPoint.md +34 -0
- data/docs/StatsByTimeMatchLength.md +20 -0
- data/docs/StatsByTimeMatchLengthEntry.md +28 -0
- data/git_push.sh +57 -0
- data/lib/stormgate_world/api/leaderboard_entries_api.rb +81 -0
- data/lib/stormgate_world/api/leaderboards_api.rb +151 -0
- data/lib/stormgate_world/api/matches_api.rb +92 -0
- data/lib/stormgate_world/api/players_api.rb +512 -0
- data/lib/stormgate_world/api/statistics_api.rb +78 -0
- data/lib/stormgate_world/api_client.rb +394 -0
- data/lib/stormgate_world/api_error.rb +58 -0
- data/lib/stormgate_world/configuration.rb +298 -0
- data/lib/stormgate_world/models/error_response.rb +289 -0
- data/lib/stormgate_world/models/leaderboard.rb +41 -0
- data/lib/stormgate_world/models/leaderboard_dump_response.rb +274 -0
- data/lib/stormgate_world/models/leaderboard_entry_history.rb +223 -0
- data/lib/stormgate_world/models/leaderboard_entry_history_entry.rb +257 -0
- data/lib/stormgate_world/models/leaderboard_entry_response.rb +461 -0
- data/lib/stormgate_world/models/leaderboard_order.rb +40 -0
- data/lib/stormgate_world/models/leaderboard_response.rb +328 -0
- data/lib/stormgate_world/models/match_participant_player_leaderboard_entry_response.rb +309 -0
- data/lib/stormgate_world/models/match_participant_player_response.rb +241 -0
- data/lib/stormgate_world/models/match_participant_response.rb +361 -0
- data/lib/stormgate_world/models/match_response.rb +355 -0
- data/lib/stormgate_world/models/match_result.rb +41 -0
- data/lib/stormgate_world/models/match_state.rb +40 -0
- data/lib/stormgate_world/models/matches_response.rb +328 -0
- data/lib/stormgate_world/models/player_activity_stats.rb +267 -0
- data/lib/stormgate_world/models/player_activity_stats_race.rb +233 -0
- data/lib/stormgate_world/models/player_matches_response.rb +293 -0
- data/lib/stormgate_world/models/player_matchups_stats.rb +239 -0
- data/lib/stormgate_world/models/player_matchups_stats_entry.rb +337 -0
- data/lib/stormgate_world/models/player_matchups_stats_matchup.rb +293 -0
- data/lib/stormgate_world/models/player_opponents_stats.rb +274 -0
- data/lib/stormgate_world/models/player_opponents_stats_opponent.rb +343 -0
- data/lib/stormgate_world/models/player_preferences.rb +237 -0
- data/lib/stormgate_world/models/player_response.rb +285 -0
- data/lib/stormgate_world/models/player_stats_entry.rb +369 -0
- data/lib/stormgate_world/models/player_stats_entry_aggregated.rb +343 -0
- data/lib/stormgate_world/models/player_stats_entry_num_breakdown.rb +245 -0
- data/lib/stormgate_world/models/profile_privacy.rb +40 -0
- data/lib/stormgate_world/models/race.rb +41 -0
- data/lib/stormgate_world/models/stats_by_time.rb +332 -0
- data/lib/stormgate_world/models/stats_by_time_entry.rb +277 -0
- data/lib/stormgate_world/models/stats_by_time_history_point.rb +303 -0
- data/lib/stormgate_world/models/stats_by_time_match_length.rb +239 -0
- data/lib/stormgate_world/models/stats_by_time_match_length_entry.rb +265 -0
- data/lib/stormgate_world/version.rb +15 -0
- data/lib/stormgate_world.rb +79 -0
- data/openapitools.json +7 -0
- data/pkg/stormgate_world_client-1.0.0.gem +0 -0
- data/spec/api/leaderboard_entries_api_spec.rb +45 -0
- data/spec/api/leaderboards_api_spec.rb +58 -0
- data/spec/api/matches_api_spec.rb +47 -0
- data/spec/api/players_api_spec.rb +117 -0
- data/spec/api/statistics_api_spec.rb +45 -0
- data/spec/models/error_response_spec.rb +60 -0
- data/spec/models/leaderboard_dump_response_spec.rb +48 -0
- data/spec/models/leaderboard_entry_history_entry_spec.rb +54 -0
- data/spec/models/leaderboard_entry_history_spec.rb +36 -0
- data/spec/models/leaderboard_entry_response_spec.rb +138 -0
- data/spec/models/leaderboard_order_spec.rb +30 -0
- data/spec/models/leaderboard_response_spec.rb +54 -0
- data/spec/models/leaderboard_spec.rb +30 -0
- data/spec/models/match_participant_player_leaderboard_entry_response_spec.rb +78 -0
- data/spec/models/match_participant_player_response_spec.rb +48 -0
- data/spec/models/match_participant_response_spec.rb +96 -0
- data/spec/models/match_response_spec.rb +84 -0
- data/spec/models/match_result_spec.rb +30 -0
- data/spec/models/match_state_spec.rb +30 -0
- data/spec/models/matches_response_spec.rb +54 -0
- data/spec/models/player_activity_stats_race_spec.rb +42 -0
- data/spec/models/player_activity_stats_spec.rb +54 -0
- data/spec/models/player_matches_response_spec.rb +48 -0
- data/spec/models/player_matchups_stats_entry_spec.rb +84 -0
- data/spec/models/player_matchups_stats_matchup_spec.rb +54 -0
- data/spec/models/player_matchups_stats_spec.rb +42 -0
- data/spec/models/player_opponents_stats_opponent_spec.rb +84 -0
- data/spec/models/player_opponents_stats_spec.rb +48 -0
- data/spec/models/player_preferences_spec.rb +36 -0
- data/spec/models/player_response_spec.rb +66 -0
- data/spec/models/player_stats_entry_aggregated_spec.rb +84 -0
- data/spec/models/player_stats_entry_num_breakdown_spec.rb +54 -0
- data/spec/models/player_stats_entry_spec.rb +90 -0
- data/spec/models/profile_privacy_spec.rb +30 -0
- data/spec/models/race_spec.rb +30 -0
- data/spec/models/stats_by_time_entry_spec.rb +48 -0
- data/spec/models/stats_by_time_history_point_spec.rb +84 -0
- data/spec/models/stats_by_time_match_length_entry_spec.rb +66 -0
- data/spec/models/stats_by_time_match_length_spec.rb +42 -0
- data/spec/models/stats_by_time_spec.rb +72 -0
- data/spec/spec_helper.rb +111 -0
- data/stormgate_world.gemspec +40 -0
- data/stormgate_world.json +1 -0
- data/update.sh +4 -0
- metadata +260 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
# StormgateWorld::StatsByTimeMatchLength
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **aggregated** | [**StatsByTimeMatchLengthEntry**](StatsByTimeMatchLengthEntry.md) | | |
|
8
|
+
| **history** | [**Array<StatsByTimeMatchLengthEntry>**](StatsByTimeMatchLengthEntry.md) | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'stormgate_world'
|
14
|
+
|
15
|
+
instance = StormgateWorld::StatsByTimeMatchLength.new(
|
16
|
+
aggregated: null,
|
17
|
+
history: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# StormgateWorld::StatsByTimeMatchLengthEntry
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **date** | **Date** | | [optional] |
|
8
|
+
| **average** | **Integer** | | [optional] |
|
9
|
+
| **median** | **Integer** | | [optional] |
|
10
|
+
| **p70** | **Integer** | | [optional] |
|
11
|
+
| **p90** | **Integer** | | [optional] |
|
12
|
+
| **p95** | **Integer** | | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'stormgate_world'
|
18
|
+
|
19
|
+
instance = StormgateWorld::StatsByTimeMatchLengthEntry.new(
|
20
|
+
date: null,
|
21
|
+
average: null,
|
22
|
+
median: null,
|
23
|
+
p70: null,
|
24
|
+
p90: null,
|
25
|
+
p95: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=$(git remote)
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
@@ -0,0 +1,81 @@
|
|
1
|
+
=begin
|
2
|
+
#api
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module StormgateWorld
|
16
|
+
class LeaderboardEntriesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param leaderboard_entry_id [String] Player Leaderboard Entry ID
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @return [LeaderboardEntryHistory]
|
25
|
+
def get_leaderboard_entry_history(leaderboard_entry_id, opts = {})
|
26
|
+
data, _status_code, _headers = get_leaderboard_entry_history_with_http_info(leaderboard_entry_id, opts)
|
27
|
+
data
|
28
|
+
end
|
29
|
+
|
30
|
+
# @param leaderboard_entry_id [String] Player Leaderboard Entry ID
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(LeaderboardEntryHistory, Integer, Hash)>] LeaderboardEntryHistory data, response status code and response headers
|
33
|
+
def get_leaderboard_entry_history_with_http_info(leaderboard_entry_id, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: LeaderboardEntriesApi.get_leaderboard_entry_history ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'leaderboard_entry_id' is set
|
38
|
+
if @api_client.config.client_side_validation && leaderboard_entry_id.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'leaderboard_entry_id' when calling LeaderboardEntriesApi.get_leaderboard_entry_history"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/v0/leaderboard-entries/{leaderboard_entry_id}/history'.sub('{' + 'leaderboard_entry_id' + '}', CGI.escape(leaderboard_entry_id.to_s))
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
+
|
52
|
+
# form parameters
|
53
|
+
form_params = opts[:form_params] || {}
|
54
|
+
|
55
|
+
# http body (model)
|
56
|
+
post_body = opts[:debug_body]
|
57
|
+
|
58
|
+
# return_type
|
59
|
+
return_type = opts[:debug_return_type] || 'LeaderboardEntryHistory'
|
60
|
+
|
61
|
+
# auth_names
|
62
|
+
auth_names = opts[:debug_auth_names] || []
|
63
|
+
|
64
|
+
new_options = opts.merge(
|
65
|
+
:operation => :"LeaderboardEntriesApi.get_leaderboard_entry_history",
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => return_type
|
72
|
+
)
|
73
|
+
|
74
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
75
|
+
if @api_client.config.debugging
|
76
|
+
@api_client.config.logger.debug "API called: LeaderboardEntriesApi#get_leaderboard_entry_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
77
|
+
end
|
78
|
+
return data, status_code, headers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,151 @@
|
|
1
|
+
=begin
|
2
|
+
#api
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module StormgateWorld
|
16
|
+
class LeaderboardsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param [Hash] opts the optional parameters
|
23
|
+
# @option opts [Race] :race
|
24
|
+
# @option opts [Integer] :page
|
25
|
+
# @option opts [Integer] :count
|
26
|
+
# @option opts [LeaderboardOrder] :order
|
27
|
+
# @option opts [String] :query
|
28
|
+
# @return [LeaderboardResponse]
|
29
|
+
def get_leaderboard(opts = {})
|
30
|
+
data, _status_code, _headers = get_leaderboard_with_http_info(opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @option opts [Race] :race
|
36
|
+
# @option opts [Integer] :page
|
37
|
+
# @option opts [Integer] :count
|
38
|
+
# @option opts [LeaderboardOrder] :order
|
39
|
+
# @option opts [String] :query
|
40
|
+
# @return [Array<(LeaderboardResponse, Integer, Hash)>] LeaderboardResponse data, response status code and response headers
|
41
|
+
def get_leaderboard_with_http_info(opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: LeaderboardsApi.get_leaderboard ...'
|
44
|
+
end
|
45
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
|
46
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling LeaderboardsApi.get_leaderboard, must be greater than or equal to 0.'
|
47
|
+
end
|
48
|
+
|
49
|
+
if @api_client.config.client_side_validation && !opts[:'count'].nil? && opts[:'count'] < 0
|
50
|
+
fail ArgumentError, 'invalid value for "opts[:"count"]" when calling LeaderboardsApi.get_leaderboard, must be greater than or equal to 0.'
|
51
|
+
end
|
52
|
+
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/v0/leaderboards/ranked_1v1'
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = opts[:query_params] || {}
|
58
|
+
query_params[:'race'] = opts[:'race'] if !opts[:'race'].nil?
|
59
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
60
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
61
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
62
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
63
|
+
|
64
|
+
# header parameters
|
65
|
+
header_params = opts[:header_params] || {}
|
66
|
+
# HTTP header 'Accept' (if needed)
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
68
|
+
|
69
|
+
# form parameters
|
70
|
+
form_params = opts[:form_params] || {}
|
71
|
+
|
72
|
+
# http body (model)
|
73
|
+
post_body = opts[:debug_body]
|
74
|
+
|
75
|
+
# return_type
|
76
|
+
return_type = opts[:debug_return_type] || 'LeaderboardResponse'
|
77
|
+
|
78
|
+
# auth_names
|
79
|
+
auth_names = opts[:debug_auth_names] || []
|
80
|
+
|
81
|
+
new_options = opts.merge(
|
82
|
+
:operation => :"LeaderboardsApi.get_leaderboard",
|
83
|
+
:header_params => header_params,
|
84
|
+
:query_params => query_params,
|
85
|
+
:form_params => form_params,
|
86
|
+
:body => post_body,
|
87
|
+
:auth_names => auth_names,
|
88
|
+
:return_type => return_type
|
89
|
+
)
|
90
|
+
|
91
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug "API called: LeaderboardsApi#get_leaderboard\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
94
|
+
end
|
95
|
+
return data, status_code, headers
|
96
|
+
end
|
97
|
+
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [LeaderboardDumpResponse]
|
100
|
+
def get_leaderboard_dump(opts = {})
|
101
|
+
data, _status_code, _headers = get_leaderboard_dump_with_http_info(opts)
|
102
|
+
data
|
103
|
+
end
|
104
|
+
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(LeaderboardDumpResponse, Integer, Hash)>] LeaderboardDumpResponse data, response status code and response headers
|
107
|
+
def get_leaderboard_dump_with_http_info(opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: LeaderboardsApi.get_leaderboard_dump ...'
|
110
|
+
end
|
111
|
+
# resource path
|
112
|
+
local_var_path = '/v0/leaderboards/ranked_1v1/dump'
|
113
|
+
|
114
|
+
# query parameters
|
115
|
+
query_params = opts[:query_params] || {}
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = opts[:header_params] || {}
|
119
|
+
# HTTP header 'Accept' (if needed)
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
|
+
|
122
|
+
# form parameters
|
123
|
+
form_params = opts[:form_params] || {}
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = opts[:debug_body]
|
127
|
+
|
128
|
+
# return_type
|
129
|
+
return_type = opts[:debug_return_type] || 'LeaderboardDumpResponse'
|
130
|
+
|
131
|
+
# auth_names
|
132
|
+
auth_names = opts[:debug_auth_names] || []
|
133
|
+
|
134
|
+
new_options = opts.merge(
|
135
|
+
:operation => :"LeaderboardsApi.get_leaderboard_dump",
|
136
|
+
:header_params => header_params,
|
137
|
+
:query_params => query_params,
|
138
|
+
:form_params => form_params,
|
139
|
+
:body => post_body,
|
140
|
+
:auth_names => auth_names,
|
141
|
+
:return_type => return_type
|
142
|
+
)
|
143
|
+
|
144
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "API called: LeaderboardsApi#get_leaderboard_dump\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
end
|
148
|
+
return data, status_code, headers
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
=begin
|
2
|
+
#api
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module StormgateWorld
|
16
|
+
class MatchesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param [Hash] opts the optional parameters
|
23
|
+
# @option opts [Integer] :page
|
24
|
+
# @option opts [Integer] :count
|
25
|
+
# @option opts [MatchState] :state
|
26
|
+
# @return [MatchesResponse]
|
27
|
+
def get_matches(opts = {})
|
28
|
+
data, _status_code, _headers = get_matches_with_http_info(opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @option opts [Integer] :page
|
34
|
+
# @option opts [Integer] :count
|
35
|
+
# @option opts [MatchState] :state
|
36
|
+
# @return [Array<(MatchesResponse, Integer, Hash)>] MatchesResponse data, response status code and response headers
|
37
|
+
def get_matches_with_http_info(opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: MatchesApi.get_matches ...'
|
40
|
+
end
|
41
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
|
42
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling MatchesApi.get_matches, must be greater than or equal to 0.'
|
43
|
+
end
|
44
|
+
|
45
|
+
if @api_client.config.client_side_validation && !opts[:'count'].nil? && opts[:'count'] < 0
|
46
|
+
fail ArgumentError, 'invalid value for "opts[:"count"]" when calling MatchesApi.get_matches, must be greater than or equal to 0.'
|
47
|
+
end
|
48
|
+
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/v0/matches'
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
55
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
56
|
+
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
57
|
+
|
58
|
+
# header parameters
|
59
|
+
header_params = opts[:header_params] || {}
|
60
|
+
# HTTP header 'Accept' (if needed)
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:debug_body]
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:debug_return_type] || 'MatchesResponse'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:debug_auth_names] || []
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:operation => :"MatchesApi.get_matches",
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: MatchesApi#get_matches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|