Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Let users downloads Icons from Professional mode, that are only available to watchers of that deviation #208

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DineshSolanki
Copy link
Owner

Deviant Art creators can restrict download based on either paying subscribing and watching of their art.
Currently FoliCon filters all these as not downloadable and does not show them.

However we can 'watch' their deviation to download. so FoliCon will now show images hidden behind "watcher wall" and watch them to download if user selects it.

The PickCommand and OpenImageCommand in the ProSearchResultViewModel have been refactored to take a DArtImageList object directly, instead of an object. This means we can handle the "MustWatch" property in the commands, allowing us to manage scenarios where the image needs to be watched to be downloaded. Additionally, a new property 'PremiumFolderData' has been added to 'DArtBrowseResult.cs', allowing tracking of folders with premium accessibility. Corresponding adjustments were made on the UI side in ProSearchResult.xaml. The 'DArtImageList' constructor is also updated to accept a new parameter - 'mustWatch'.
@DineshSolanki DineshSolanki self-assigned this Jul 22, 2024
Copy link

@DineshSolanki DineshSolanki requested a review from Copilot March 16, 2025 18:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables users in Professional mode to download icons hidden behind a watcher wall by adjusting the API models and updating view logic.

  • Introduces a new PremiumFolderData model to capture premium folder properties.
  • Refines command parameter types and logic in ProSearchResultViewModel to handle the "must watch" condition.
  • Adds a MustWatch flag to DArtImageList for indicating icons that require watching.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
FoliCon/Models/Api/DArtBrowseResult.cs Adds PremiumFolderData with properties to support premium content access.
FoliCon/ViewModels/ProSearchResultViewModel.cs Refactors command parameter types and image selection logic to incorporate must-watch functionality.
FoliCon/Models/Data/DArtImageList.cs Updates constructor and adds MustWatch property to support the new logic.

public bool HasAccess { get; set; }

[JsonProperty("gallery_id")]
public string GallaryId { get; set; }
Copy link
Preview

Copilot AI Mar 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The property name 'GallaryId' appears to be misspelled. Consider renaming it to 'GalleryId' for clarity and consistency.

Suggested change
public string GallaryId { get; set; }
public string GalleryId { get; set; }

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant