Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Added 'ExtraData' to Pr0grammResponse - #24

Open
JKamsker wants to merge 1 commit into
holzmaster:masterfrom
JKamsker:patch-3
Open

Added 'ExtraData' to Pr0grammResponse#24
JKamsker wants to merge 1 commit into
holzmaster:masterfrom
JKamsker:patch-3

Conversation

@JKamsker

@JKamsker JKamsker commented Feb 3, 2020

Copy link
Copy Markdown
Contributor

Allowing the Dev to Inspect/Use extra data from the api which could come in future

Allowing the Dev to Inspect/Use extra data from the api which could come in future

@holzmaster holzmaster left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Geht hier auch ein Read-only Dictionary?

@holzmaster

Copy link
Copy Markdown
Owner

Ist halt nicht gut, wenn das Feature dann irgendwann drin ist, aber schon Entwickler damit arbeiten und es plötzlich weg ist.

@JKamsker

JKamsker commented Feb 3, 2020

Copy link
Copy Markdown
Contributor Author

Dafür gibts ja SemVer. Wenn man die upgraded, muss man damit rechnen, dass sich was ändert.

In meinem Fall hat die errormsg beim login gefehlt, dass das chaptcha fehlt.

@holzmaster

Copy link
Copy Markdown
Owner

Ist halt ein ziemlich ekliger breaking change. Ist zwar breaking, aber auf das migrieren wird einen kein compilerfehler hinweisen. Und auch nicht ob das Feld jemals wieder so befüllt sein kann.

Ich wäre vielmehr dafür, ein Dictionary mit allen Feldern anzugeben. Mit sowas kann die Response erweitert werden, aber der bestehende Code wird nicht in einen fragwürdigen Zustand gesetzt.

@JKamsker

JKamsker commented Feb 4, 2020

Copy link
Copy Markdown
Contributor Author

Ja das wär vll. eine bessere Lösung. Ist das denn überhaupt möglich, alle Felder zusätzlich in der dict zu speichern?

@holzmaster

holzmaster commented Feb 4, 2020

Copy link
Copy Markdown
Owner

Keine Ahnung. Kann mir vorstellen, dass das mit Newtonsoft JSON irgendwie geht.

Auf lange Sicht wollte ich eigentlich davon weg und eher zu dem JSON-FW des .NET-Standards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants