-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from novoda/feature/rm-73-Character-Model
Feature [RM73] Character Model
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// Character.swift | ||
// Rick And Morty | ||
// | ||
// Created by Scottie Gray on 2021-08-09. | ||
// Copyright © 2021 Novoda. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Character: Decodable { | ||
let id: Int | ||
let name: String | ||
let species: String | ||
let location: LastLocation | ||
let status: String | ||
let image: String | ||
let episode: [String] | ||
} | ||
|
||
struct LastLocation: Decodable { | ||
let name: String | ||
let url: String | ||
} |