public async Task <bool> TrySetVideoFragmentIntervalAsync(Guid userGuid, string fileName, double startTime, double endTime) { var fragmentInterval = new VideoFragmentUpdate(fileName, startTime, endTime, _avatarAppSettings.ShortVideoMaxLength); if (!fragmentInterval.IsIntervalCorrect) { return(false); } await Mediator.Send(new UpdateVideoFragmentInterval(fragmentInterval, userGuid)); return(true); }
public UpdateVideoFragmentInterval(VideoFragmentUpdate interval, Guid userGuid) { Interval = interval; UserGuid = userGuid; }