Example #1
0
 /// <summary>
 /// create a a music set for the given music files in the given music style
 /// </summary>
 /// <param name="musicOptions"></param>
 /// <param name="musicStyle"></param>
 /// <param name="musicFiles"></param>
 public MusicSet(MusicDb db, MusicOptions musicOptions, MusicStyles musicStyle, IEnumerable <MusicFile> musicFiles, TaskItem taskItem)
 {
     Debug.Assert(musicFiles.Count() > 0);
     this.log          = ApplicationLoggerFactory.CreateLogger(this.GetType());
     this.MusicDb      = db;
     this.MusicOptions = musicOptions;
     this.MusicStyle   = musicStyle;
     this.MusicFiles   = musicFiles;
     this.taskItem     = taskItem;
     this.FirstFile    = musicFiles.First();
     this.OpusType     = FirstFile.OpusType;
     this.generated    = FirstFile.IsGenerated;
 }
 public Link()
 {
     typeField    = OpusType.simple;
     showField    = OpusShow.replace;
     actuateField = OpusActuate.onRequest;
 }
Example #3
0
 public Opus()
 {
     this.typeField = OpusType.simple;
     this.showField = OpusShow.replace;
     this.actuateField = OpusActuate.onRequest;
 }
 public Link()
 {
     typeField = OpusType.simple;
     showField = OpusShow.replace;
     actuateField = OpusActuate.onRequest;
 }
Example #5
0
 public override Task RemoveMusicAsync(string musician, string opus, OpusType type, IEnumerable<MusicFile> files)
 {
     //TODO:  when we have created popular music entries we will remove them here
     return Task.CompletedTask;
 }
Example #6
0
 public abstract Task RemoveMusicAsync(string musician, string opus, OpusType type, IEnumerable<MusicFile> files);
Example #7
0
 public Opus() {
     this.typeField = OpusType.simple;
     this.showField = OpusShow.replace;
     this.actuateField = OpusActuate.onRequest;
 }