File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
splitwise/src/main/java/com/example/splitwise/entity/user Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,24 @@ public Group(){
2626 expenseController = new ExpenseController ();
2727 }
2828
29+ /**
30+ * Method to add member
31+ * @param member {@link User}
32+ */
2933 public void addMember (User member ){
3034 groupMembers .add (member );
3135 }
3236
37+ /**
38+ * Method to create expense
39+ * @param expenseId {@link String}
40+ * @param description {@link String}
41+ * @param expenseAmount {@link double}
42+ * @param splitDetails {@link List<Split>}
43+ * @param splitType {@link ExpenseSplitType}
44+ * @param paidByUser {@link User}
45+ * @return {@link Expense}
46+ */
3347 public Expense createExpense (String expenseId , String description , double expenseAmount ,
3448 List <Split > splitDetails , ExpenseSplitType splitType , User paidByUser ) {
3549
You can’t perform that action at this time.
0 commit comments