Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#82 즐겨찾기 기능 구현
위와 같이 즐겨찾기 기능을 추가했습니다.
SplashScreenLoadedCommand에서 json에 저장된 Favorite을 확인하여 Service 인스턴스에 추가로 부여합니다.
저장 기능은 CatalogPageItemFavoriteCommand를 위 favorite 버튼의 커맨드로 추가하였습니다.
위 커맨드 executeasync 에서 preferenceManager를 통해서 저장하는데, Json 저장시 길이가 짧아지는 경우 문제가 되어,
OpenOrWrite에서 Create로 변경하였습니다.
즐겨찾기만 보는 기능은 CatalogPageViewModel에 OnFavoriteOnly 프로퍼티를 추가하여, SetProperty 발생시
CatalogPageLoadedCommand를 통해서 CatalogInternetService의
메서드로 오버로드하여 구현하였습니다. (기존 IsMatchedItem은 MainWindowViewModel 쪽에서 사용하고 있어서 오버로드로 구현하였습니다.)
테스트 코드는 저장 부분 로직 우선적으로 작성하였고, 기능은 전반적으로 확인 하였습니다