예제 #1
0
 internal static Kit FromModel(Model.Kit kit) =>
 new Kit
 {
     Identifier       = ModuleIdentifier.FromModel(kit.Schema.Identifier),
     Containers       = { kit.Data.CreateSnapshot().Segments.Select(FieldContainerData.FromModel) },
     DefaultKitNumber = kit.DefaultKitNumber
 };
예제 #2
0
 internal static ModuleAudio FromModel(Model.Audio.ModuleAudio audio) =>
 new ModuleAudio
 {
     Identifier            = ModuleIdentifier.FromModel(audio.Schema.Identifier),
     Format                = AudioFormat.FromModel(audio.Format),
     DurationPerInstrument = Duration.FromTimeSpan(audio.DurationPerInstrument),
     InstrumentCaptures    = { audio.Captures.Select(InstrumentAudio.FromModel) }
 };
예제 #3
0
 internal static Module FromModel(Model.Module module) =>
 new Module
 {
     Identifier = ModuleIdentifier.FromModel(module.Schema.Identifier),
     Containers = { module.Data.CreateSnapshot().Segments.Select(FieldContainerData.FromModel) }
 };