Skip to content

Commit 6359a86

Browse files
committed
java doc for common user request model
1 parent 5c2396e commit 6359a86

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

src/main/java/data_access_use_case/entity_request_models/CommonUserDsRequestModel.java

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,46 @@ public class CommonUserDsRequestModel {
1313
private final boolean isAdmin;
1414
private final List<Integer> flashcardSetIds;
1515

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+
*/
1623
public CommonUserDsRequestModel(String username, String password, boolean isAdmin, List<Integer> flashcardSetIds){
1724
this.username = username;
1825
this.password = password;
1926
this.isAdmin = isAdmin;
2027
this.flashcardSetIds = flashcardSetIds;
2128
}
29+
30+
/**
31+
* Gets the username of the user
32+
* @return the username of the user
33+
*/
2234
public String getUsername(){
2335
return username;
2436
}
25-
37+
/**
38+
* Gets the password of the user
39+
* @return the password of the user
40+
*/
2641
public String getPassword(){
2742
return password;
2843
}
29-
44+
/**
45+
* Gets if the user is an admin user
46+
* @return true if the user is an admin user.
47+
*/
3048
public boolean getIsAdmin(){
3149
return isAdmin;
3250
}
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+
*/
3455
public List<Integer> getFlashcardSetIds(){
35-
return flashcardSetIds ;
56+
return flashcardSetIds;
3657
}
3758
}

0 commit comments

Comments
 (0)