Skip to content

Commit f12586c

Browse files
committed
Documentation.
1 parent efff4bd commit f12586c

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,55 @@
11
package de.presti.ree6.sql.entities;
22

3+
import jakarta.persistence.Entity;
34
import jakarta.persistence.Id;
5+
import lombok.AllArgsConstructor;
6+
import lombok.Getter;
7+
import lombok.NoArgsConstructor;
8+
import lombok.Setter;
49

10+
/**
11+
* Entity class for the Warning punishments.
12+
*/
13+
@Getter
14+
@Setter
15+
@Entity
16+
@NoArgsConstructor
17+
@AllArgsConstructor
518
public class Punishments {
19+
20+
/**
21+
* The id of the punishment.
22+
*/
623
@Id
724
long id;
25+
26+
/**
27+
* The guild that it is bound to.
28+
*/
829
long guildId;
30+
31+
/**
32+
* The required warnings.
33+
*/
934
int warnings;
35+
36+
/**
37+
* The action (1 -> timeout, 2 -> roleAdd, 3 -> roleRemove, 4 -> kick, 5 -> ban)
38+
*/
1039
int action;
40+
41+
/**
42+
* The Role id related to the role actions.
43+
*/
1144
long roleId;
45+
46+
/**
47+
* The Timeout time in milliseconds for the timeout action.
48+
*/
1249
long timeoutTime;
50+
51+
/**
52+
* The reason for the kick and ban action.
53+
*/
1354
String reason;
1455
}

src/main/java/de/presti/ree6/sql/entities/Warning.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,34 @@
77
import lombok.NoArgsConstructor;
88
import lombok.Setter;
99

10+
/**
11+
* A Entity representing the warnings a user has received on a specific guild.
12+
*/
1013
@Getter
1114
@Setter
1215
@Entity
1316
@NoArgsConstructor
1417
@AllArgsConstructor
1518
public class Warning {
1619

20+
/**
21+
* The id of the warning.
22+
*/
1723
@Id
1824
long id;
25+
26+
/**
27+
* The user id its bound to.
28+
*/
1929
long userId;
30+
31+
/**
32+
* The guild id its bound to.
33+
*/
2034
long guildId;
35+
36+
/**
37+
* The warnings that the user has.
38+
*/
2139
int warnings;
2240
}

0 commit comments

Comments
 (0)