2 * Copyright (c) 2017-2020. Developed by Hedgecode.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.hedgecode.snooker.request;
19 import org.hedgecode.snooker.api.PlayerCategory;
20 import org.hedgecode.snooker.api.RankingType;
21 import org.hedgecode.snooker.api.Season;
24 * Input Params for Request.
26 * @author Dmitry Samoshin aka gotty
28 public class RequestParams {
33 private int matchNumber;
34 private Season season;
35 private PlayerCategory category;
36 private RankingType rankingType;
38 public RequestParams(RequestType type, int id, Season season) {
61 public RequestParams(int eventId, int roundId, int matchNumber) {
62 this.eventId = eventId;
63 this.roundId = roundId;
64 this.matchNumber = matchNumber;
67 public RequestParams(Season season, PlayerCategory category) {
69 this.category = category;
72 public RequestParams(Season season, RankingType rankingType) {
74 this.rankingType = rankingType;
77 public int getPlayerId() {
81 public void setPlayerId(int playerId) {
82 this.playerId = playerId;
85 public int getEventId() {
89 public void setEventId(int eventId) {
90 this.eventId = eventId;
93 public int getRoundId() {
97 public void setRoundId(int roundId) {
98 this.roundId = roundId;
101 public int getMatchNumber() {
105 public void setMatchNumber(int matchNumber) {
106 this.matchNumber = matchNumber;
109 public Season getSeason() {
113 public void setSeason(Season season) {
114 this.season = season;
117 public PlayerCategory getCategory() {
121 public void setCategory(PlayerCategory category) {
122 this.category = category;
125 public RankingType getRankingType() {
129 public void setRankingType(RankingType rankingType) {
130 this.rankingType = rankingType;