public async Task ReleaseTranscriptionAsync(ReleaseFromProcessingRequest request, long agentId) { await ReleaseTranscription(request.Id); var filter = new WorkingPeriodFilter { AgentId = agentId, Type = LabelingType.Transcription, Action = request.Action }; await workingPeriodsService.SaveWorkingPeriodAsync(filter, request.SpentTime); }
public async Task ReleaseMomentAsync(ReleaseFromProcessingRequest request, long agentId) { await ReleaseMoment(request.Id); var filter = new WorkingPeriodFilter { AgentId = agentId, Type = LabelingType.FullConversationMoments, Action = request.Action }; await workingPeriodsService.SaveWorkingPeriodAsync(filter, request.SpentTime); }
public async Task ReleaseAudio([FromBody] ReleaseFromProcessingRequest request) { var user = await userManager.GetUserAsync(HttpContext.User); await fcMomentsService.ReleaseMomentAsync(request, user.Id); }
public async Task ReleaseAudio([FromBody] ReleaseFromProcessingRequest request) { var user = await userManager.GetUserAsync(HttpContext.User); await transcriptionService.ReleaseTranscriptionAsync(request, user.Id); }