-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
138b147
commit 7825d0b
Showing
21 changed files
with
436 additions
and
24 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
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 |
---|---|---|
|
@@ -10,4 +10,6 @@ import UIKit | |
|
||
protocol RouterProtocol: class { | ||
var rootVC: UIViewController { get } | ||
|
||
func start() | ||
} |
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
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,13 @@ | ||
// | ||
// StoryboardName.swift | ||
// games | ||
// | ||
// Created by ali güneş on 10.05.2021. | ||
// Copyright © 2021 ali güneş. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
enum StoryboardName: String { | ||
case games = "Games" | ||
} |
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,21 @@ | ||
// | ||
// UIStoryboard.swift | ||
// games | ||
// | ||
// Created by ali güneş on 10.05.2021. | ||
// Copyright © 2021 ali güneş. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIStoryboard { | ||
static func load(_ name: StoryboardName, identifier: String? = nil) -> UIViewController { | ||
let sb = UIStoryboard(name: name.rawValue, bundle: nil) | ||
|
||
if let identifier = identifier { | ||
return sb.instantiateViewController(withIdentifier: identifier) | ||
} else { | ||
return sb.instantiateInitialViewController()! | ||
} | ||
} | ||
} |
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,14 @@ | ||
// | ||
// GenreResponseDTO.swift | ||
// games | ||
// | ||
// Created by ali güneş on 10.05.2021. | ||
// Copyright © 2021 ali güneş. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct GenreResponseDTO: Decodable { | ||
let id: Int | ||
let name: String | ||
} |
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,13 @@ | ||
// | ||
// SearchListResponseDTO.swift | ||
// games | ||
// | ||
// Created by ali güneş on 10.05.2021. | ||
// Copyright © 2021 ali güneş. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct SearchListResponseDTO: Decodable { | ||
let results: [SearchResponseDTO] | ||
} |
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,17 @@ | ||
// | ||
// SearchResponseDTO.swift | ||
// games | ||
// | ||
// Created by ali güneş on 10.05.2021. | ||
// Copyright © 2021 ali güneş. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct SearchResponseDTO: Decodable { | ||
let id: Int | ||
let name: String | ||
let metacritic: Int? | ||
let background_image: String | ||
let genres: [GenreResponseDTO] | ||
} |
Oops, something went wrong.