@@ -32,7 +32,7 @@ internal sealed class TodoService(ILoggerService<TodoService> logger, IServicePr
3232
3333 /// <inheritdoc/>
3434 /// <exception cref="ServiceException"></exception>
35- public TodoCollection GetTodos ( ConvertSettings settings , ImageType imageType )
35+ public TodoCollection GetTodos ( ConvertSettingsBase settings , ImageType imageType )
3636 {
3737 try
3838 {
@@ -57,7 +57,7 @@ public TodoCollection GetTodos(ConvertSettings settings, ImageType imageType)
5757
5858 /// <inheritdoc/>
5959 /// <exception cref="ServiceException"></exception>
60- public TodoCollection GetTodosFromJson ( ConvertSettings settings , ImageType imageType , string jsonFilePath )
60+ public TodoCollection GetTodosFromJson ( ConvertSettingsBase settings , ImageType imageType , string jsonFilePath )
6161 {
6262 try
6363 {
@@ -80,7 +80,7 @@ public TodoCollection GetTodosFromJson(ConvertSettings settings, ImageType image
8080
8181 /// <inheritdoc/>
8282 /// <exception cref="ServiceException"></exception>
83- public void GetTodosDone ( TodoCollection todos , ConvertSettings settings , ImageType imageType )
83+ public void GetTodosDone ( TodoCollection todos , ConvertSettingsBase settings , ImageType imageType )
8484 {
8585 try
8686 {
@@ -104,7 +104,7 @@ public void GetTodosDone(TodoCollection todos, ConvertSettings settings, ImageTy
104104 }
105105
106106 /// <inheritdoc/>
107- public void GetTodosDoneFromJson ( TodoCollection todos , ConvertSettings settings , ImageType imageType )
107+ public void GetTodosDoneFromJson ( TodoCollection todos , ConvertSettingsBase settings , ImageType imageType )
108108 {
109109 try
110110 {
@@ -118,7 +118,7 @@ public void GetTodosDoneFromJson(TodoCollection todos, ConvertSettings settings,
118118 }
119119 }
120120
121- private void GetTodo ( TodoCollection todos , ConvertSettings settings , ImageType imageType , string file )
121+ private void GetTodo ( TodoCollection todos , ConvertSettingsBase settings , ImageType imageType , string file )
122122 {
123123 FileInfo fileInfo = new ( file ) ;
124124
@@ -136,7 +136,7 @@ private void GetTodo(TodoCollection todos, ConvertSettings settings, ImageType i
136136 todos . Add ( todo ) ;
137137 }
138138
139- private static void GetTodoFromJson ( TodoCollection todos , ConvertSettings settings , ImageType imageType , TodoModel todoFromJson )
139+ private static void GetTodoFromJson ( TodoCollection todos , ConvertSettingsBase settings , ImageType imageType , TodoModel todoFromJson )
140140 {
141141 string newFullPathName =
142142 Path . Combine ( settings . TargetFolder , todoFromJson . RelativePath , todoFromJson . FileName . Replace ( GetTargetFileExtensions ( imageType ) , $ "{ imageType } ") ) ;
@@ -152,7 +152,7 @@ private static void GetTodoFromJson(TodoCollection todos, ConvertSettings settin
152152 todos . Add ( todo ) ;
153153 }
154154
155- private void GetTodoDone ( TodoModel todo , ConvertSettings settings , ImageType imageType )
155+ private void GetTodoDone ( TodoModel todo , ConvertSettingsBase settings , ImageType imageType )
156156 {
157157 if ( settings . ConvertMode . Equals ( ConvertModeType . Automatic ) )
158158 {
@@ -169,7 +169,7 @@ private void GetTodoDone(TodoModel todo, ConvertSettings settings, ImageType ima
169169 _todosDone . Add ( todo . FileHash ) ;
170170 }
171171
172- private void SaveImage ( ConvertSettings settings , TodoModel todo , ImageType imageType )
172+ private void SaveImage ( ConvertSettingsBase settings , TodoModel todo , ImageType imageType )
173173 {
174174 IImageModel image = _provider . GetRequiredKeyedService < IImageModel > ( imageType ) ;
175175 image . Load ( todo . FullPathName ) ;
@@ -183,7 +183,7 @@ private void SaveImage(ConvertSettings settings, TodoModel todo, ImageType image
183183 image . Save ( newFilePath ) ;
184184 }
185185
186- private static string PrepareTargetFolder ( ConvertSettings settings , IImageModel image , string targetFolder )
186+ private static string PrepareTargetFolder ( ConvertSettingsBase settings , IImageModel image , string targetFolder )
187187 {
188188 string newTargetFolder = targetFolder ;
189189
@@ -202,7 +202,7 @@ private static string PrepareTargetFolder(ConvertSettings settings, IImageModel
202202 return newTargetFolder ;
203203 }
204204
205- private static string GetTargetFileName ( ConvertSettings settings , TodoModel todo )
205+ private static string GetTargetFileName ( ConvertSettingsBase settings , TodoModel todo )
206206 {
207207 if ( settings . ConvertMode == ConvertModeType . Manual && settings . RetainStructure )
208208 {
0 commit comments