lishogi 0.1.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/LICENSE +661 -0
- data/LICENSE~ +1 -0
- data/Makefile +39 -0
- data/Makefile~ +7 -0
- data/README.md +276 -0
- data/Rakefile +10 -0
- data/docs/Account200Response.md +20 -0
- data/docs/AccountApi.md +345 -0
- data/docs/AccountEmail200Response.md +18 -0
- data/docs/AccountKid200Response.md +18 -0
- data/docs/AnalysisApi.md +77 -0
- data/docs/ApiStreamEvent200Response.md +53 -0
- data/docs/ApiUsersStatus200ResponseInner.md +30 -0
- data/docs/ArenaTournaments.md +22 -0
- data/docs/ArenaTournamentsApi.md +601 -0
- data/docs/BoardApi.md +659 -0
- data/docs/BoardGameStream200Response.md +51 -0
- data/docs/BoardGameTakebackAcceptParameter.md +15 -0
- data/docs/BotApi.md +634 -0
- data/docs/ChallengeDeclinedEvent.md +20 -0
- data/docs/ChallengeEvent.md +20 -0
- data/docs/ChallengeJson.md +42 -0
- data/docs/ChallengeJsonPerf.md +20 -0
- data/docs/ChallengeJsonTimeControl.md +51 -0
- data/docs/ChallengeJsonTimeControlOneOf.md +28 -0
- data/docs/ChallengeJsonTimeControlOneOf1.md +20 -0
- data/docs/ChallengeJsonTimeControlOneOf2.md +18 -0
- data/docs/ChallengeUser.md +30 -0
- data/docs/ChallengesApi.md +414 -0
- data/docs/ChatLineEvent.md +24 -0
- data/docs/Clock.md +24 -0
- data/docs/Count.md +38 -0
- data/docs/Error.md +18 -0
- data/docs/GameEventInfo.md +22 -0
- data/docs/GameEventInfoCompat.md +20 -0
- data/docs/GameEventPlayer.md +28 -0
- data/docs/GameFinishEvent.md +20 -0
- data/docs/GameFullEvent.md +42 -0
- data/docs/GameFullEventPerf.md +18 -0
- data/docs/GameJson.md +50 -0
- data/docs/GameJsonAnalysisInner.md +24 -0
- data/docs/GameJsonAnalysisInnerJudgment.md +20 -0
- data/docs/GameJsonClock.md +26 -0
- data/docs/GameJsonPlayers.md +20 -0
- data/docs/GameStartEvent.md +20 -0
- data/docs/GameStateEvent.md +38 -0
- data/docs/GameStatus.md +15 -0
- data/docs/GameUser.md +32 -0
- data/docs/GameUserAnalysis.md +24 -0
- data/docs/GamesApi.md +473 -0
- data/docs/LightUser.md +24 -0
- data/docs/LightUserTitle.md +49 -0
- data/docs/MessagingApi.md +79 -0
- data/docs/Move.md +28 -0
- data/docs/NotFound.md +18 -0
- data/docs/OAuthError.md +20 -0
- data/docs/Ok.md +18 -0
- data/docs/Perf.md +26 -0
- data/docs/PerfType.md +15 -0
- data/docs/Perfs.md +30 -0
- data/docs/PlayTime.md +20 -0
- data/docs/Profile.md +28 -0
- data/docs/PuzzleRoundJson.md +24 -0
- data/docs/PuzzlesApi.md +211 -0
- data/docs/SimulsApi.md +69 -0
- data/docs/Speed.md +15 -0
- data/docs/StudiesApi.md +233 -0
- data/docs/TVApi.md +208 -0
- data/docs/Team.md +32 -0
- data/docs/TeamAll200Response.md +30 -0
- data/docs/TeamRequest.md +24 -0
- data/docs/TeamRequestWithUser.md +20 -0
- data/docs/TeamsApi.md +702 -0
- data/docs/Title.md +15 -0
- data/docs/User.md +42 -0
- data/docs/UserExtended.md +60 -0
- data/docs/UserPreferences.md +72 -0
- data/docs/UsersApi.md +667 -0
- data/docs/Variant.md +22 -0
- data/docs/VariantKey.md +15 -0
- data/git_push.sh +57 -0
- data/lib/lishogi/api/account_api.rb +314 -0
- data/lib/lishogi/api/analysis_api.rb +92 -0
- data/lib/lishogi/api/arena_tournaments_api.rb +681 -0
- data/lib/lishogi/api/board_api.rb +685 -0
- data/lib/lishogi/api/bot_api.rb +608 -0
- data/lib/lishogi/api/challenges_api.rb +554 -0
- data/lib/lishogi/api/games_api.rb +514 -0
- data/lib/lishogi/api/messaging_api.rb +97 -0
- data/lib/lishogi/api/puzzles_api.rb +210 -0
- data/lib/lishogi/api/simuls_api.rb +79 -0
- data/lib/lishogi/api/studies_api.rb +244 -0
- data/lib/lishogi/api/teams_api.rb +678 -0
- data/lib/lishogi/api/tv_api.rb +222 -0
- data/lib/lishogi/api/users_api.rb +677 -0
- data/lib/lishogi/api_client.rb +437 -0
- data/lib/lishogi/api_error.rb +58 -0
- data/lib/lishogi/configuration.rb +392 -0
- data/lib/lishogi/models/account200_response.rb +223 -0
- data/lib/lishogi/models/account_email200_response.rb +214 -0
- data/lib/lishogi/models/account_kid200_response.rb +214 -0
- data/lib/lishogi/models/api_stream_event200_response.rb +107 -0
- data/lib/lishogi/models/api_users_status200_response_inner.rb +273 -0
- data/lib/lishogi/models/arena_tournaments.rb +238 -0
- data/lib/lishogi/models/board_game_stream200_response.rb +106 -0
- data/lib/lishogi/models/board_game_takeback_accept_parameter.rb +104 -0
- data/lib/lishogi/models/challenge_declined_event.rb +257 -0
- data/lib/lishogi/models/challenge_event.rb +257 -0
- data/lib/lishogi/models/challenge_json.rb +453 -0
- data/lib/lishogi/models/challenge_json_perf.rb +223 -0
- data/lib/lishogi/models/challenge_json_time_control.rb +106 -0
- data/lib/lishogi/models/challenge_json_time_control_one_of.rb +259 -0
- data/lib/lishogi/models/challenge_json_time_control_one_of1.rb +223 -0
- data/lib/lishogi/models/challenge_json_time_control_one_of2.rb +214 -0
- data/lib/lishogi/models/challenge_user.rb +275 -0
- data/lib/lishogi/models/chat_line_event.rb +315 -0
- data/lib/lishogi/models/clock.rb +242 -0
- data/lib/lishogi/models/count.rb +304 -0
- data/lib/lishogi/models/error.rb +215 -0
- data/lib/lishogi/models/game_event_info.rb +266 -0
- data/lib/lishogi/models/game_event_info_compat.rb +223 -0
- data/lib/lishogi/models/game_event_player.rb +260 -0
- data/lib/lishogi/models/game_finish_event.rb +257 -0
- data/lib/lishogi/models/game_full_event.rb +436 -0
- data/lib/lishogi/models/game_full_event_perf.rb +215 -0
- data/lib/lishogi/models/game_json.rb +457 -0
- data/lib/lishogi/models/game_json_analysis_inner.rb +251 -0
- data/lib/lishogi/models/game_json_analysis_inner_judgment.rb +258 -0
- data/lib/lishogi/models/game_json_clock.rb +250 -0
- data/lib/lishogi/models/game_json_players.rb +223 -0
- data/lib/lishogi/models/game_start_event.rb +257 -0
- data/lib/lishogi/models/game_state_event.rb +396 -0
- data/lib/lishogi/models/game_status.rb +52 -0
- data/lib/lishogi/models/game_user.rb +277 -0
- data/lib/lishogi/models/game_user_analysis.rb +269 -0
- data/lib/lishogi/models/light_user.rb +241 -0
- data/lib/lishogi/models/light_user_title.rb +105 -0
- data/lib/lishogi/models/move.rb +259 -0
- data/lib/lishogi/models/not_found.rb +214 -0
- data/lib/lishogi/models/o_auth_error.rb +225 -0
- data/lib/lishogi/models/ok.rb +214 -0
- data/lib/lishogi/models/perf.rb +250 -0
- data/lib/lishogi/models/perf_type.rb +49 -0
- data/lib/lishogi/models/perfs.rb +268 -0
- data/lib/lishogi/models/play_time.rb +223 -0
- data/lib/lishogi/models/profile.rb +259 -0
- data/lib/lishogi/models/puzzle_round_json.rb +241 -0
- data/lib/lishogi/models/speed.rb +44 -0
- data/lib/lishogi/models/team.rb +280 -0
- data/lib/lishogi/models/team_all200_response.rb +272 -0
- data/lib/lishogi/models/team_request.rb +241 -0
- data/lib/lishogi/models/team_request_with_user.rb +223 -0
- data/lib/lishogi/models/title.rb +64 -0
- data/lib/lishogi/models/user.rb +322 -0
- data/lib/lishogi/models/user_extended.rb +410 -0
- data/lib/lishogi/models/user_preferences.rb +515 -0
- data/lib/lishogi/models/variant.rb +256 -0
- data/lib/lishogi/models/variant_key.rb +44 -0
- data/lib/lishogi/version.rb +15 -0
- data/lib/lishogi.rb +112 -0
- data/lishogi-api.patched.yaml +5806 -0
- data/lishogi-api.yaml +5811 -0
- data/lishogi.gemspec +41 -0
- data/manifest.scm +1 -0
- data/manifest.scm~ +1 -0
- data/patch +5 -0
- data/patch~ +1 -0
- data/pkg/lishogi-0.1.0.gem +0 -0
- data/smoke +5 -0
- data/smoke~ +2 -0
- data/spec/api/account_api_spec.rb +91 -0
- data/spec/api/analysis_api_spec.rb +49 -0
- data/spec/api/arena_tournaments_api_spec.rb +160 -0
- data/spec/api/board_api_spec.rb +154 -0
- data/spec/api/bot_api_spec.rb +144 -0
- data/spec/api/challenges_api_spec.rb +123 -0
- data/spec/api/games_api_spec.rb +135 -0
- data/spec/api/messaging_api_spec.rb +48 -0
- data/spec/api/puzzles_api_spec.rb +70 -0
- data/spec/api/simuls_api_spec.rb +46 -0
- data/spec/api/studies_api_spec.rb +81 -0
- data/spec/api/teams_api_spec.rb +160 -0
- data/spec/api/tv_api_spec.rb +74 -0
- data/spec/api/users_api_spec.rb +157 -0
- data/spec/models/account200_response_spec.rb +42 -0
- data/spec/models/account_email200_response_spec.rb +36 -0
- data/spec/models/account_kid200_response_spec.rb +36 -0
- data/spec/models/api_stream_event200_response_spec.rb +32 -0
- data/spec/models/api_users_status200_response_inner_spec.rb +72 -0
- data/spec/models/arena_tournaments_spec.rb +48 -0
- data/spec/models/board_game_stream200_response_spec.rb +32 -0
- data/spec/models/board_game_takeback_accept_parameter_spec.rb +21 -0
- data/spec/models/challenge_declined_event_spec.rb +46 -0
- data/spec/models/challenge_event_spec.rb +46 -0
- data/spec/models/challenge_json_perf_spec.rb +42 -0
- data/spec/models/challenge_json_spec.rb +120 -0
- data/spec/models/challenge_json_time_control_one_of1_spec.rb +42 -0
- data/spec/models/challenge_json_time_control_one_of2_spec.rb +36 -0
- data/spec/models/challenge_json_time_control_one_of_spec.rb +66 -0
- data/spec/models/challenge_json_time_control_spec.rb +32 -0
- data/spec/models/challenge_user_spec.rb +72 -0
- data/spec/models/chat_line_event_spec.rb +62 -0
- data/spec/models/clock_spec.rb +54 -0
- data/spec/models/count_spec.rb +96 -0
- data/spec/models/error_spec.rb +36 -0
- data/spec/models/game_event_info_compat_spec.rb +42 -0
- data/spec/models/game_event_info_spec.rb +52 -0
- data/spec/models/game_event_player_spec.rb +66 -0
- data/spec/models/game_finish_event_spec.rb +46 -0
- data/spec/models/game_full_event_perf_spec.rb +36 -0
- data/spec/models/game_full_event_spec.rb +112 -0
- data/spec/models/game_json_analysis_inner_judgment_spec.rb +46 -0
- data/spec/models/game_json_analysis_inner_spec.rb +54 -0
- data/spec/models/game_json_clock_spec.rb +60 -0
- data/spec/models/game_json_players_spec.rb +42 -0
- data/spec/models/game_json_spec.rb +136 -0
- data/spec/models/game_start_event_spec.rb +46 -0
- data/spec/models/game_state_event_spec.rb +100 -0
- data/spec/models/game_status_spec.rb +30 -0
- data/spec/models/game_user_analysis_spec.rb +54 -0
- data/spec/models/game_user_spec.rb +78 -0
- data/spec/models/light_user_spec.rb +54 -0
- data/spec/models/light_user_title_spec.rb +32 -0
- data/spec/models/move_spec.rb +66 -0
- data/spec/models/not_found_spec.rb +36 -0
- data/spec/models/o_auth_error_spec.rb +42 -0
- data/spec/models/ok_spec.rb +36 -0
- data/spec/models/perf_spec.rb +60 -0
- data/spec/models/perf_type_spec.rb +30 -0
- data/spec/models/perfs_spec.rb +72 -0
- data/spec/models/play_time_spec.rb +42 -0
- data/spec/models/profile_spec.rb +66 -0
- data/spec/models/puzzle_round_json_spec.rb +54 -0
- data/spec/models/speed_spec.rb +30 -0
- data/spec/models/team_all200_response_spec.rb +72 -0
- data/spec/models/team_request_spec.rb +54 -0
- data/spec/models/team_request_with_user_spec.rb +42 -0
- data/spec/models/team_spec.rb +78 -0
- data/spec/models/title_spec.rb +30 -0
- data/spec/models/user_extended_spec.rb +162 -0
- data/spec/models/user_preferences_spec.rb +210 -0
- data/spec/models/user_spec.rb +108 -0
- data/spec/models/variant_key_spec.rb +30 -0
- data/spec/models/variant_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- metadata +446 -0
data/docs/TVApi.md
ADDED
@@ -0,0 +1,208 @@
|
|
1
|
+
# Lishogi::TVApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://lishogi.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**tv_channel_games**](TVApi.md#tv_channel_games) | **GET** /api/tv/{channel} | Get best ongoing games of a TV channel |
|
8
|
+
| [**tv_channels**](TVApi.md#tv_channels) | **GET** /api/tv/channels | Get current TV games |
|
9
|
+
| [**tv_feed**](TVApi.md#tv_feed) | **GET** /api/tv/feed | Stream current TV game |
|
10
|
+
|
11
|
+
|
12
|
+
## tv_channel_games
|
13
|
+
|
14
|
+
> Object tv_channel_games(channel, opts)
|
15
|
+
|
16
|
+
Get best ongoing games of a TV channel
|
17
|
+
|
18
|
+
Get a list of ongoing games for a given TV channel. Similar to [lishogi.org/games](https://lishogi.org/games). Available in kifu or [ndjson](#section/Introduction/Streaming-with-ND-JSON) format, depending on the request Accept header.
|
19
|
+
|
20
|
+
### Examples
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'time'
|
24
|
+
require 'lishogi'
|
25
|
+
|
26
|
+
api_instance = Lishogi::TVApi.new
|
27
|
+
channel = 'channel_example' # String | The name of the channel in camel case.
|
28
|
+
opts = {
|
29
|
+
nb: 8.14, # Float | Number of games to fetch.
|
30
|
+
moves: true, # Boolean | Include the KIF moves.
|
31
|
+
notation_in_json: true, # Boolean | Include the full KIF within the JSON response, in a `notation` field.
|
32
|
+
tags: true, # Boolean | Include the KIF tags.
|
33
|
+
clocks: true # Boolean | Include clock comments in the KIF moves, when available. Example: `2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }`
|
34
|
+
}
|
35
|
+
|
36
|
+
begin
|
37
|
+
# Get best ongoing games of a TV channel
|
38
|
+
result = api_instance.tv_channel_games(channel, opts)
|
39
|
+
p result
|
40
|
+
rescue Lishogi::ApiError => e
|
41
|
+
puts "Error when calling TVApi->tv_channel_games: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
#### Using the tv_channel_games_with_http_info variant
|
46
|
+
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
48
|
+
|
49
|
+
> <Array(Object, Integer, Hash)> tv_channel_games_with_http_info(channel, opts)
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
begin
|
53
|
+
# Get best ongoing games of a TV channel
|
54
|
+
data, status_code, headers = api_instance.tv_channel_games_with_http_info(channel, opts)
|
55
|
+
p status_code # => 2xx
|
56
|
+
p headers # => { ... }
|
57
|
+
p data # => Object
|
58
|
+
rescue Lishogi::ApiError => e
|
59
|
+
puts "Error when calling TVApi->tv_channel_games_with_http_info: #{e}"
|
60
|
+
end
|
61
|
+
```
|
62
|
+
|
63
|
+
### Parameters
|
64
|
+
|
65
|
+
| Name | Type | Description | Notes |
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
67
|
+
| **channel** | **String** | The name of the channel in camel case. | |
|
68
|
+
| **nb** | **Float** | Number of games to fetch. | [optional][default to 10] |
|
69
|
+
| **moves** | **Boolean** | Include the KIF moves. | [optional][default to true] |
|
70
|
+
| **notation_in_json** | **Boolean** | Include the full KIF within the JSON response, in a `notation` field. | [optional][default to false] |
|
71
|
+
| **tags** | **Boolean** | Include the KIF tags. | [optional][default to true] |
|
72
|
+
| **clocks** | **Boolean** | Include clock comments in the KIF moves, when available. Example: `2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }` | [optional][default to false] |
|
73
|
+
|
74
|
+
### Return type
|
75
|
+
|
76
|
+
**Object**
|
77
|
+
|
78
|
+
### Authorization
|
79
|
+
|
80
|
+
No authorization required
|
81
|
+
|
82
|
+
### HTTP request headers
|
83
|
+
|
84
|
+
- **Content-Type**: Not defined
|
85
|
+
- **Accept**: text/plain, application/x-ndjson
|
86
|
+
|
87
|
+
|
88
|
+
## tv_channels
|
89
|
+
|
90
|
+
> Object tv_channels
|
91
|
+
|
92
|
+
Get current TV games
|
93
|
+
|
94
|
+
Get basic info about the best games being played for each speed and variant, but also computer games and bot games. See [lishogi.org/tv](https://lishogi.org/tv).
|
95
|
+
|
96
|
+
### Examples
|
97
|
+
|
98
|
+
```ruby
|
99
|
+
require 'time'
|
100
|
+
require 'lishogi'
|
101
|
+
|
102
|
+
api_instance = Lishogi::TVApi.new
|
103
|
+
|
104
|
+
begin
|
105
|
+
# Get current TV games
|
106
|
+
result = api_instance.tv_channels
|
107
|
+
p result
|
108
|
+
rescue Lishogi::ApiError => e
|
109
|
+
puts "Error when calling TVApi->tv_channels: #{e}"
|
110
|
+
end
|
111
|
+
```
|
112
|
+
|
113
|
+
#### Using the tv_channels_with_http_info variant
|
114
|
+
|
115
|
+
This returns an Array which contains the response data, status code and headers.
|
116
|
+
|
117
|
+
> <Array(Object, Integer, Hash)> tv_channels_with_http_info
|
118
|
+
|
119
|
+
```ruby
|
120
|
+
begin
|
121
|
+
# Get current TV games
|
122
|
+
data, status_code, headers = api_instance.tv_channels_with_http_info
|
123
|
+
p status_code # => 2xx
|
124
|
+
p headers # => { ... }
|
125
|
+
p data # => Object
|
126
|
+
rescue Lishogi::ApiError => e
|
127
|
+
puts "Error when calling TVApi->tv_channels_with_http_info: #{e}"
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
|
133
|
+
This endpoint does not need any parameter.
|
134
|
+
|
135
|
+
### Return type
|
136
|
+
|
137
|
+
**Object**
|
138
|
+
|
139
|
+
### Authorization
|
140
|
+
|
141
|
+
No authorization required
|
142
|
+
|
143
|
+
### HTTP request headers
|
144
|
+
|
145
|
+
- **Content-Type**: Not defined
|
146
|
+
- **Accept**: application/json
|
147
|
+
|
148
|
+
|
149
|
+
## tv_feed
|
150
|
+
|
151
|
+
> Object tv_feed
|
152
|
+
|
153
|
+
Stream current TV game
|
154
|
+
|
155
|
+
Stream positions and moves of the current [TV game](https://lishogi.org/tv) in [ndjson](#section/Introduction/Streaming-with-ND-JSON). A summary of the game is sent as a first message, and when the featured game changes. Try it with `curl https://lishogi.org/api/tv/feed`.
|
156
|
+
|
157
|
+
### Examples
|
158
|
+
|
159
|
+
```ruby
|
160
|
+
require 'time'
|
161
|
+
require 'lishogi'
|
162
|
+
|
163
|
+
api_instance = Lishogi::TVApi.new
|
164
|
+
|
165
|
+
begin
|
166
|
+
# Stream current TV game
|
167
|
+
result = api_instance.tv_feed
|
168
|
+
p result
|
169
|
+
rescue Lishogi::ApiError => e
|
170
|
+
puts "Error when calling TVApi->tv_feed: #{e}"
|
171
|
+
end
|
172
|
+
```
|
173
|
+
|
174
|
+
#### Using the tv_feed_with_http_info variant
|
175
|
+
|
176
|
+
This returns an Array which contains the response data, status code and headers.
|
177
|
+
|
178
|
+
> <Array(Object, Integer, Hash)> tv_feed_with_http_info
|
179
|
+
|
180
|
+
```ruby
|
181
|
+
begin
|
182
|
+
# Stream current TV game
|
183
|
+
data, status_code, headers = api_instance.tv_feed_with_http_info
|
184
|
+
p status_code # => 2xx
|
185
|
+
p headers # => { ... }
|
186
|
+
p data # => Object
|
187
|
+
rescue Lishogi::ApiError => e
|
188
|
+
puts "Error when calling TVApi->tv_feed_with_http_info: #{e}"
|
189
|
+
end
|
190
|
+
```
|
191
|
+
|
192
|
+
### Parameters
|
193
|
+
|
194
|
+
This endpoint does not need any parameter.
|
195
|
+
|
196
|
+
### Return type
|
197
|
+
|
198
|
+
**Object**
|
199
|
+
|
200
|
+
### Authorization
|
201
|
+
|
202
|
+
No authorization required
|
203
|
+
|
204
|
+
### HTTP request headers
|
205
|
+
|
206
|
+
- **Content-Type**: Not defined
|
207
|
+
- **Accept**: application/x-ndjson
|
208
|
+
|
data/docs/Team.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Lishogi::Team
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | [optional] |
|
8
|
+
| **name** | **String** | | [optional] |
|
9
|
+
| **description** | **String** | | [optional] |
|
10
|
+
| **open** | **Boolean** | | [optional] |
|
11
|
+
| **leader** | [**LightUser**](LightUser.md) | | [optional] |
|
12
|
+
| **leaders** | [**Array<LightUser>**](LightUser.md) | | [optional] |
|
13
|
+
| **nb_members** | **Integer** | | [optional] |
|
14
|
+
| **location** | **String** | | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'lishogi'
|
20
|
+
|
21
|
+
instance = Lishogi::Team.new(
|
22
|
+
id: shogi-is-hard,
|
23
|
+
name: Shogi is hard,
|
24
|
+
description: For beginners like me, Shogi can be hard so I made this team so we can all help each other get through the first steps of playing. Shoutout to @jiroro for getting #1 in the wolverine team battle and representing our team! I'm also looking for possible team leaders. DM me if you want to become a team mod/leader.,
|
25
|
+
open: true,
|
26
|
+
leader: null,
|
27
|
+
leaders: null,
|
28
|
+
nb_members: 3129,
|
29
|
+
location: Anywhere
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Lishogi::TeamAll200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **current_page** | **Float** | | [optional] |
|
8
|
+
| **max_per_page** | **Float** | | [optional] |
|
9
|
+
| **current_page_results** | [**Array<Team>**](Team.md) | | [optional] |
|
10
|
+
| **nb_results** | **Float** | | [optional] |
|
11
|
+
| **previous_page** | **Float** | | [optional] |
|
12
|
+
| **next_page** | **Float** | | [optional] |
|
13
|
+
| **nb_pages** | **Float** | | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'lishogi'
|
19
|
+
|
20
|
+
instance = Lishogi::TeamAll200Response.new(
|
21
|
+
current_page: 4,
|
22
|
+
max_per_page: 15,
|
23
|
+
current_page_results: null,
|
24
|
+
nb_results: 205194,
|
25
|
+
previous_page: 3,
|
26
|
+
next_page: 5,
|
27
|
+
nb_pages: 13680
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
data/docs/TeamRequest.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Lishogi::TeamRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **team_id** | **String** | | [optional] |
|
8
|
+
| **user_id** | **String** | | [optional] |
|
9
|
+
| **date** | **Float** | | [optional] |
|
10
|
+
| **message** | **String** | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'lishogi'
|
16
|
+
|
17
|
+
instance = Lishogi::TeamRequest.new(
|
18
|
+
team_id: shogi-is-hard,
|
19
|
+
user_id: YoGazeFish,
|
20
|
+
date: 1514505150384,
|
21
|
+
message: Hello, I would like to join the team!
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Lishogi::TeamRequestWithUser
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **request** | [**TeamRequest**](TeamRequest.md) | | [optional] |
|
8
|
+
| **user** | [**User**](User.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'lishogi'
|
14
|
+
|
15
|
+
instance = Lishogi::TeamRequestWithUser.new(
|
16
|
+
request: null,
|
17
|
+
user: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|