Enhance channel management: add support for preferred weight multipliers and preferred hours in channel shows, update related data models and API endpoints, and implement validation for new properties. Refactor scheduling logic to utilize preferred hours for weight adjustments during show planning.
This commit is contained in:
@@ -209,7 +209,9 @@ public static class ChannelEndpoints
|
||||
body.Weight,
|
||||
body.BlockMode,
|
||||
body.BlockValue,
|
||||
body.IsEnabled
|
||||
body.IsEnabled,
|
||||
body.PreferredWeightMultiplier,
|
||||
body.PreferredHours ?? []
|
||||
),
|
||||
cancellationToken
|
||||
);
|
||||
@@ -401,7 +403,8 @@ public static class ChannelEndpoints
|
||||
body.NextLabel,
|
||||
body.Line1,
|
||||
body.Line2,
|
||||
body.Trigger
|
||||
body.Trigger,
|
||||
body.Weight
|
||||
),
|
||||
cancellationToken
|
||||
);
|
||||
@@ -604,7 +607,9 @@ public sealed record UpdateChannelShowBody(
|
||||
int Weight,
|
||||
BlockMode BlockMode,
|
||||
int BlockValue,
|
||||
bool IsEnabled
|
||||
bool IsEnabled,
|
||||
int PreferredWeightMultiplier,
|
||||
IReadOnlyList<HourWindowInput> PreferredHours
|
||||
);
|
||||
|
||||
public sealed record AddChannelAdBody(Guid MediaAssetId);
|
||||
@@ -622,7 +627,8 @@ public sealed record UpdateBumperVariantBody(
|
||||
string NextLabel,
|
||||
string Line1,
|
||||
string Line2,
|
||||
BumperTrigger Trigger
|
||||
BumperTrigger Trigger,
|
||||
int Weight
|
||||
);
|
||||
|
||||
public sealed record UpdateBumperTemplateBody(
|
||||
|
||||
Reference in New Issue
Block a user