Public Access
32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
namespace MeetingAssistant.MeetingNotes;
|
|
|
|
public static class MeetingNoteTemplate
|
|
{
|
|
public static MeetingNote Create(
|
|
string title,
|
|
DateTimeOffset? startTime = null,
|
|
DateTimeOffset? endTime = null,
|
|
IEnumerable<string>? attendees = null,
|
|
IEnumerable<string>? projects = null,
|
|
string transcriptPath = "",
|
|
string assistantContextPath = "",
|
|
string summaryPath = "",
|
|
string userNotes = "")
|
|
{
|
|
var notePath = "";
|
|
var frontmatter = new MeetingNoteFrontmatter
|
|
{
|
|
Title = title,
|
|
StartTime = startTime,
|
|
EndTime = endTime,
|
|
Attendees = attendees?.Where(value => !string.IsNullOrWhiteSpace(value)).ToList() ?? [],
|
|
Projects = projects?.Where(value => !string.IsNullOrWhiteSpace(value)).ToList() ?? [],
|
|
Transcript = transcriptPath,
|
|
AssistantContext = assistantContextPath,
|
|
Summary = summaryPath
|
|
};
|
|
|
|
return new MeetingNote(notePath, frontmatter, userNotes);
|
|
}
|
|
}
|