-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from lahirulakruwan/main
Resolved the conflicts
- Loading branch information
Showing
3 changed files
with
160 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
api/total_activity_participant_attendance_count_by_date_data.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
public isolated service class TotalActivityParticipantAttendanceCountByDateData { | ||
private TotalActivityParticipantAttendanceCountByDate total_activity_participant_attendance_count_by_date = { | ||
attendance_date: "", | ||
daily_total: -1 | ||
}; | ||
|
||
isolated function init(TotalActivityParticipantAttendanceCountByDate? total_activity_participant_attendance_count_by_date = null) returns error? { | ||
if(total_activity_participant_attendance_count_by_date != null) { // if activity_participant_attendance is provided, then use that and do not load from DB | ||
self.total_activity_participant_attendance_count_by_date = total_activity_participant_attendance_count_by_date.cloneReadOnly(); | ||
return; | ||
} | ||
|
||
} | ||
|
||
isolated resource function get attendance_date() returns string? { | ||
lock { | ||
return self.total_activity_participant_attendance_count_by_date.attendance_date; | ||
} | ||
} | ||
|
||
isolated resource function get daily_total() returns int? { | ||
lock { | ||
return self.total_activity_participant_attendance_count_by_date.daily_total; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters