This pull request introduces significant refactoring, enhancements, and bug fixes to improve code organization, internationalization support, database schema, and controller methods within the application.
Changes Included
Renaming and Fixes:
Renamed Unblock to Unblocked in BlockStatus.
Fixed the incorrect table name in BlockUser.
Refactoring:
Added final modifiers to method variables and parameters to ensure immutability.
Refactored CreateLiveBroadcastRequest to extend LiveBroadcastRequest for improved code reuse.
Moved classes such as DataForCreateStreamResponse to the broadcast package for better organization.
Refactored EventController and LiveBroadcastController, relocating @PreAuthorize annotations from the class level to individual route handlers.
Updated and moved common/shared methods to StreamService.
Refactored EventService, LiveBroadcastService, and LiveBroadcastServiceImpl to improve method handling and structure.
Renamed EventAttendeeResponse.java and EventAttendeesResponse.java to EventOrStreamAttendeeResponse and EventOrStreamAttendeesResponse.java.
Overview
This pull request introduces significant refactoring, enhancements, and bug fixes to improve code organization, internationalization support, database schema, and controller methods within the application.
Changes Included
Renaming and Fixes:
Unblock
toUnblocked
inBlockStatus
.BlockUser
.Refactoring:
final
modifiers to method variables and parameters to ensure immutability.CreateLiveBroadcastRequest
to extendLiveBroadcastRequest
for improved code reuse.DataForCreateStreamResponse
to the broadcast package for better organization.EventController
andLiveBroadcastController
, relocating@PreAuthorize
annotations from the class level to individual route handlers.StreamService
.EventService
,LiveBroadcastService
, andLiveBroadcastServiceImpl
to improve method handling and structure.EventAttendeeResponse.java
andEventAttendeesResponse.java
toEventOrStreamAttendeeResponse
andEventOrStreamAttendeesResponse.java
.Database Schema Updates:
create-schema
SQL file:created_on
&updated_on
).title
anddescription
in thestream_speaker
table.Controller Enhancements:
UserLiveBroadcastController
.RescheduleLiveBroadcastRequest
,UpdateLiveBroadcastRequest
, andUpdateLiveBroadcastVisibilityRequest
to includeaccessToken
.Localization:
Other Updates:
getVisibility()
method toLiveBroadcastRequest
.accessToken
variable fromprivate
toprotected
.StreamAttendeeMapper
.LiveBroadcastServiceImpl
to list assignable categories usingYouTubeChannelService.listAssignableCategories()
.TotalStreamsAttendedByUserResponse
andTotalStreamsCreatedByUserResponse
.Purpose
This refactoring and enhancement aim to:
Notes
Testing