[LIB-2] Add snooker-score-api source files
[snooker-score-api.git] / src / main / java / org / hedgecode / snooker / api / Match.java
1 /*
2  * Copyright (c) 2017. Developed by Hedgecode.
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package org.hedgecode.snooker.api;
18
19 import java.util.Date;
20
21 /**
22  * Match Entity API Interface.
23  *
24  * @author Dmitry Samoshin aka gotty
25  */
26 public interface Match extends IdEntity {
27
28     int matchId();
29
30     int eventId();
31
32     Event event();
33
34     int round();
35
36     int number();
37
38     int player1Id();
39
40     Player player1();
41
42     int score1();
43
44     boolean walkover1();
45
46     int player2Id();
47
48     Player player2();
49
50     int score2();
51
52     boolean walkover2();
53
54     int winnerId();
55
56     Player winner();
57
58     boolean unfinished();
59
60     boolean onBreak();
61
62     int worldSnookerId();
63
64     String liveUrl();
65
66     String detailsUrl();
67
68     boolean pointsDropped();
69
70     boolean showCommonNote();
71
72     boolean estimated();
73
74     int type();
75
76     int tableNo();
77
78     String videoURL();
79
80     Date initDate();
81
82     Date modDate();
83
84     Date startDate();
85
86     Date endDate();
87
88     Date scheduledDate();
89
90     String frameScores();
91
92     String sessions();
93
94     String note();
95
96     String extendedNote();
97
98 }