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

Trip → stopInfo Funktion unklar #3

Open
frogg opened this issue Jun 27, 2022 · 2 comments
Open

Trip → stopInfo Funktion unklar #3

frogg opened this issue Jun 27, 2022 · 2 comments
Assignees

Comments

@frogg
Copy link
Collaborator

frogg commented Jun 27, 2022

Ich habe das nicht ganz verstanden:

Trip → stopInfo: JourneyStopInfo…

public struct JourneyStopInfo: Decodable {
    public let finalStationName: String
    public let finalStationEvaNr: String
}
@Inf0rmatik3r
Copy link
Collaborator

Was genau verstehst du nicht? Der Decoder geht quasi den tree nach unten und decoded den JSON in die verschiedenen Objekte.

@frogg
Copy link
Collaborator Author

frogg commented Jun 27, 2022

Sorry, hätte noch dazu schreiben sollen was ich genau meine:
Ich habe nicht verstanden wieso das Attribut stopInfo auf Trip existiert, bzw. müsste es nicht anders heißen? also z.B. finalStopInfo?

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

No branches or pull requests

2 participants