Refactor various components to improve code clarity and maintainability. Update ListUsersQueryHandler to utilize UserListFilter for parameter handling. Refactor BumperSpecFactory and related classes to encapsulate input parameters into dedicated records, enhancing readability. Adjust MediaAsset and Slot classes to streamline content updates with new content models. Improve BumperRenderBackgroundService and MediaProcessingBackgroundService to use MediaReadyInfo for asset readiness, ensuring consistent parameter management across the application.
This commit is contained in:
@@ -15,11 +15,7 @@ public static class BumperSpecFactory
|
||||
BumperTemplate template,
|
||||
BumperTextVariant variant,
|
||||
int alignedDurationSeconds,
|
||||
string fromName,
|
||||
string toName,
|
||||
string? audioPath,
|
||||
string? posterAbsolutePath,
|
||||
string? backgroundAbsolutePath
|
||||
BumperSpecInputs inputs
|
||||
)
|
||||
{
|
||||
var free = variant.Kind == BumperTextKind.Free;
|
||||
@@ -33,12 +29,12 @@ public static class BumperSpecFactory
|
||||
template.TextColor,
|
||||
font == BumperFont.Serif ? bumper.FontFileSerif : bumper.FontFileSans,
|
||||
free ? "" : variant.NowLabel,
|
||||
free ? "" : fromName,
|
||||
free ? "" : inputs.FromName,
|
||||
free ? "" : variant.NextLabel,
|
||||
free ? "" : toName,
|
||||
backgroundAbsolutePath,
|
||||
audioPath,
|
||||
posterAbsolutePath,
|
||||
free ? "" : inputs.ToName,
|
||||
inputs.BackgroundAbsolutePath,
|
||||
inputs.AudioPath,
|
||||
inputs.PosterAbsolutePath,
|
||||
free,
|
||||
variant.Line1,
|
||||
variant.Line2
|
||||
|
||||
Reference in New Issue
Block a user