Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

[refactor] Fix force decoding API response, Separate API response model and Model for View #43

@ChoiysApple

Description

@ChoiysApple

1. Force decoding

Need to fix forced unwrapping when decoding API response:

// func requestData(contentId: Int)
let response = try! JSONDecoder().decode(MovieDetail.self, from: data)

There's too many try! code in project. Need to fix

2. Model seperation

This project is now using API response model for view.
Need to use different model for view and separate dependency between View <-> API

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions