2 * Copyright (c) 2017. 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) {
58 public RequestParams(int eventId, int roundId, int matchNumber) {
59 this.eventId = eventId;
60 this.roundId = roundId;
61 this.matchNumber = matchNumber;
64 public RequestParams(Season season, PlayerCategory category) {
66 this.category = category;
69 public RequestParams(Season season, RankingType rankingType) {
71 this.rankingType = rankingType;
74 public int getPlayerId() {
78 public void setPlayerId(int playerId) {
79 this.playerId = playerId;
82 public int getEventId() {
86 public void setEventId(int eventId) {
87 this.eventId = eventId;
90 public int getRoundId() {
94 public void setRoundId(int roundId) {
95 this.roundId = roundId;
98 public int getMatchNumber() {
102 public void setMatchNumber(int matchNumber) {
103 this.matchNumber = matchNumber;
106 public Season getSeason() {
110 public void setSeason(Season season) {
111 this.season = season;
114 public PlayerCategory getCategory() {
118 public void setCategory(PlayerCategory category) {
119 this.category = category;
122 public RankingType getRankingType() {
126 public void setRankingType(RankingType rankingType) {
127 this.rankingType = rankingType;