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:
@@ -58,23 +58,14 @@ public class BumperTextVariant
|
||||
CreatedAt = DateTimeOffset.UtcNow,
|
||||
};
|
||||
|
||||
public void Update(
|
||||
string name,
|
||||
BumperTextKind kind,
|
||||
string nowLabel,
|
||||
string nextLabel,
|
||||
string line1,
|
||||
string line2,
|
||||
BumperTrigger trigger,
|
||||
int weight
|
||||
)
|
||||
public void Update(string name, BumperTextContent text, BumperTrigger trigger, int weight)
|
||||
{
|
||||
Name = name;
|
||||
Kind = kind;
|
||||
NowLabel = nowLabel;
|
||||
NextLabel = nextLabel;
|
||||
Line1 = line1;
|
||||
Line2 = line2;
|
||||
Kind = text.Kind;
|
||||
NowLabel = text.NowLabel;
|
||||
NextLabel = text.NextLabel;
|
||||
Line1 = text.Line1;
|
||||
Line2 = text.Line2;
|
||||
Trigger = trigger;
|
||||
Weight = Math.Max(0, weight);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user