1 <?xml version="1.0" encoding="UTF-8"?>
4 ~ Copyright (c) 2017-2020. Developed by Hedgecode.
6 ~ Licensed under the Apache License, Version 2.0 (the "License");
7 ~ you may not use this file except in compliance with the License.
8 ~ You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing, software
13 ~ distributed under the License is distributed on an "AS IS" BASIS,
14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ~ See the License for the specific language governing permissions and
16 ~ limitations under the License.
19 <faqs xmlns="http://maven.apache.org/FML/1.0.1"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xsi:schemaLocation="http://maven.apache.org/FML/1.0.1 http://maven.apache.org/xsd/fml-1.0.1.xsd"
22 title="Часто Задаваемые Вопросы">
24 <title>Основные вопросы:</title>
25 <faq id="how-to-get-event">
27 Как получить полную информацию по конкретному турниру?
30 <p><pre>Event event = Snooker.API().getEvent(eventId);</pre>
31 где параметр <code>eventId</code> - ID турнира.
35 <faq id="how-to-get-match">
37 Как получить полную информацию по конкретному матчу?
40 <p><pre>Match match = Snooker.API().getMatch(eventId, roundId, matchNumber);</pre>
41 где параметр <code>eventId</code> - ID турнира, в котором играется искомый матч;
42 <code>roundId</code> - ID раунда турнира; <code>matchNumber</code> - номер матча в раунде.
46 <faq id="how-to-get-player">
48 Как получить полную информацию по конкретному игроку?
51 <p><pre>Player player = Snooker.API().getPlayer(int playerId);</pre>
52 где параметр <code>playerId</code> - ID игрока.
56 <faq id="how-to-get-season-events">
58 Как получить информацию по всем турнирам в сезоне?
61 <p><pre>Events seasonEvents = Snooker.API().getSeasonEvents(season);</pre>
62 где параметр <code>season</code> - объект класса <code>Season</code>, задающий
63 конкретный сезон, или же <code>Season.ALL</code> - для всех доступных сезонов.
67 <faq id="how-to-get-event-matches">
69 Как получить информацию по всем матчам конкретного турнира?
72 <p><pre>Matches eventMatches = Snooker.API().getEventMatches(eventId);</pre>
73 где параметр <code>eventId</code> - ID турнира.
77 <faq id="how-to-get-ongoing-matches">
79 Как получить информацию по матчам, которые проходят в данным момент?
82 <p><pre>OngoingMatches matches = Snooker.API().getOngoingMatches();</pre>
86 <faq id="how-to-get-player-matches">
88 Как получить информацию по всем матчам конкретного игрока в сезоне?
91 <p><pre>Matches playerMatches = Snooker.API().getPlayerMatches(playerId, season);</pre>
92 где параметр <code>playerId</code> - ID игрока,
93 а <code>season</code> - объект класса <code>Season</code>, задающий
94 конкретный сезон, или же <code>Season.ALL</code> - для всех доступных сезонов.
98 <faq id="how-to-get-event-players">
100 Как получить информацию по всем игрокам в конкретном турнире?
103 <p><pre>Players eventPlayers = Snooker.API().getEventPlayers(eventId);</pre>
104 где параметр <code>eventId</code> - ID турнира.
108 <faq id="how-to-get-players">
110 Как получить информацию по всем игрокам в конкретном сезоне?
113 <p><pre>Players players = Snooker.API().getPlayers(season, category);</pre>
114 где параметр <code>season</code> - объект класса <code>Season</code>, задающий
115 конкретный сезон, или же <code>Season.ALL</code> - для всех доступных сезонов,
116 а <code>category</code> - объект класса <code>PlayerCategory</code>,
117 задающий категорию игроков (например, <code>PlayerCategory.PRO</code>).
122 <part id="additional">
123 <title>Дополнительно:</title>
124 <faq id="how-to-get-rankings">
126 Как получить информацию по рейтингам/заработанным суммам всех игроков в сезоне?
129 <p><pre>Rankings rankings = Snooker.API().getRankings(season, rankingType);</pre>
130 где параметр <code>season</code> - объект класса <code>Season</code>, задающий
131 конкретный сезон, или же <code>Season.ALL</code> - для всех доступных сезонов,
132 а <code>rankingType</code> - объект класса <code>RankingType</code>,
133 задающий тип рейтинга (например, <code>RankingType.MoneyRankings</code>).