@@ -13,25 +13,46 @@ public class CommonUserDsRequestModel {
13
13
private final boolean isAdmin ;
14
14
private final List <Integer > flashcardSetIds ;
15
15
16
+ /**
17
+ * Creates a flashcard response model based on the following parameters.
18
+ * @param username the user's username.
19
+ * @param password the user's password.
20
+ * @param isAdmin true if the user is an admin user.
21
+ * @param flashcardSetIds the list of flashcard set ids created by the user.
22
+ */
16
23
public CommonUserDsRequestModel (String username , String password , boolean isAdmin , List <Integer > flashcardSetIds ){
17
24
this .username = username ;
18
25
this .password = password ;
19
26
this .isAdmin = isAdmin ;
20
27
this .flashcardSetIds = flashcardSetIds ;
21
28
}
29
+
30
+ /**
31
+ * Gets the username of the user
32
+ * @return the username of the user
33
+ */
22
34
public String getUsername (){
23
35
return username ;
24
36
}
25
-
37
+ /**
38
+ * Gets the password of the user
39
+ * @return the password of the user
40
+ */
26
41
public String getPassword (){
27
42
return password ;
28
43
}
29
-
44
+ /**
45
+ * Gets if the user is an admin user
46
+ * @return true if the user is an admin user.
47
+ */
30
48
public boolean getIsAdmin (){
31
49
return isAdmin ;
32
50
}
33
-
51
+ /**
52
+ * Gets the list of flashcard set ids created by the user
53
+ * @return the list of flashcard set ids created by the user
54
+ */
34
55
public List <Integer > getFlashcardSetIds (){
35
- return flashcardSetIds ;
56
+ return flashcardSetIds ;
36
57
}
37
58
}
0 commit comments