示例#1
0
 public static void AddToResource(this BasicNamingConfig basicNamingConfig, NamingConfigResource resource)
 {
     resource.IncludeArtistName = basicNamingConfig.IncludeArtistName;
     resource.IncludeAlbumTitle = basicNamingConfig.IncludeAlbumTitle;
     resource.IncludeQuality    = basicNamingConfig.IncludeQuality;
     resource.ReplaceSpaces     = basicNamingConfig.ReplaceSpaces;
     resource.Separator         = basicNamingConfig.Separator;
     resource.NumberStyle       = basicNamingConfig.NumberStyle;
 }
示例#2
0
        public static NamingConfig ToModel(this NamingConfigResource resource)
        {
            return(new NamingConfig
            {
                Id = resource.Id,

                RenameTracks = resource.RenameTracks,
                ReplaceIllegalCharacters = resource.ReplaceIllegalCharacters,
                StandardTrackFormat = resource.StandardTrackFormat,
                MultiDiscTrackFormat = resource.MultiDiscTrackFormat,

                ArtistFolderFormat = resource.ArtistFolderFormat,
                AlbumFolderFormat = resource.AlbumFolderFormat
            });
        }