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) {
59 public RequestParams(int eventId, int roundId, int matchNumber) {
60 this.eventId = eventId;
61 this.roundId = roundId;
62 this.matchNumber = matchNumber;
65 public RequestParams(Season season, PlayerCategory category) {
67 this.category = category;
70 public RequestParams(Season season, RankingType rankingType) {
72 this.rankingType = rankingType;
75 public int getPlayerId() {
79 public void setPlayerId(int playerId) {
80 this.playerId = playerId;
83 public int getEventId() {
87 public void setEventId(int eventId) {
88 this.eventId = eventId;
91 public int getRoundId() {
95 public void setRoundId(int roundId) {
96 this.roundId = roundId;
99 public int getMatchNumber() {
103 public void setMatchNumber(int matchNumber) {
104 this.matchNumber = matchNumber;
107 public Season getSeason() {
111 public void setSeason(Season season) {
112 this.season = season;
115 public PlayerCategory getCategory() {
119 public void setCategory(PlayerCategory category) {
120 this.category = category;
123 public RankingType getRankingType() {
127 public void setRankingType(RankingType rankingType) {
128 this.rankingType = rankingType;