-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor TMDB data handling to use SearchResultData class
Refactored TmdbDataTransformer to encapsulate result details into a new SearchResultData class. This change simplifies the method signatures and improves code readability by reducing parameter count. Added SearchResultData.cs to define the new data structure.
- Loading branch information
1 parent
95d2a19
commit 82584c8
Showing
2 changed files
with
53 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace FoliCon.Models.Data; | ||
|
||
public class SearchResultData | ||
{ | ||
public dynamic Result { get; set; } | ||
public string ResultType { get; set; } | ||
public string FullFolderPath { get; set; } | ||
public string Rating { get; set; } | ||
public bool IsPickedById { get; set; } | ||
public string FolderName { get; set; } | ||
public string LocalPosterPath { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters