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

IConverterSettings simplified; DownloadMethod issue resolved #3

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

IConverterSettings simplified; DownloadMethod issue resolved #3

wants to merge 1 commit into from

Conversation

sxkote
Copy link

@sxkote sxkote commented Jul 6, 2016

@justinyoo , thanks for that great CloudConverter Wrapper.
I've found some issues (listed below) with Settings and DownloadMethod and I've tried to resolve them. If You would find my changes useful and reliable, please commit them in the project.
Anyway, I would appreciate Your feedback.

Best regards,
Ivan Litskevich.

IConverterSettings simplified

The issue was, that the only way to specify settings was to have .config with appropriate settings.

Now there is no need to have config requirement, because we may use any ConverterSettings class (nested by IConverterSettings) that can be created not from .config, but i.e. from DB or dynamically from the code. Only requirement for that class - is to have 3 main properties (ApiKey, ProcessUrl and UseHeader).

DownloadMethod issue resolved

The issue was, that some values (true or false) were serialized as a string (i.e.: "download":"false"), that caused wrong server-side interpretation (these values wasn't parsed on the server correctly and in some cases in response we could have a converted file - wrong behavior).

Now DownloadMethod sends correctly (as bool or as string) depending on the value (thanks to Json Custom Serialization attribute option).

  now there is no need to have config requirement,
  we may use any ConverterSettings class that can created not from config, but i.e. from DB

2) DownloadMethod issue corrected
   now DownloadMethod sends correctly (as bool or as string)
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.

None yet

1 participant