File tree 5 files changed +6
-6
lines changed
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ extension GitHubRequest {
13
13
}
14
14
}
15
15
16
- extension GitHubRequest where Response: Decodable {
16
+ extension GitHubRequest where Response: Himotoki . Decodable {
17
17
func response( from object: Any , urlResponse: HTTPURLResponse ) throws -> Response {
18
18
return try decodeValue ( object)
19
19
}
Original file line number Diff line number Diff line change 1
1
import Foundation
2
2
import Himotoki
3
3
4
- struct SearchResponse < Element: Decodable > : PaginationResponse {
4
+ struct SearchResponse < Element: Himotoki . Decodable > : PaginationResponse {
5
5
let elements : [ Element ]
6
6
let page : Int
7
7
let nextPage : Int ?
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ import Foundation
2
2
import Himotoki
3
3
4
4
protocol PaginationResponse {
5
- associatedtype Element : Decodable
5
+ associatedtype Element : Himotoki . Decodable
6
6
var elements : [ Element ] { get }
7
7
var page : Int { get }
8
8
var nextPage : Int ? { get }
9
9
init ( elements: [ Element ] , page: Int , nextPage: Int ? )
10
10
}
11
11
12
- struct AnyPaginationResponse < Element: Decodable > : PaginationResponse {
12
+ struct AnyPaginationResponse < Element: Himotoki . Decodable > : PaginationResponse {
13
13
let elements : [ Element ]
14
14
let page : Int
15
15
let nextPage : Int ?
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import APIKit
5
5
import Action
6
6
import Himotoki
7
7
8
- class PaginationViewModel < Element: Decodable > {
8
+ class PaginationViewModel < Element: Himotoki . Decodable > {
9
9
let indicatorViewAnimating : Driver < Bool >
10
10
let elements : Driver < [ Element ] >
11
11
let loadError : Driver < Error >
Original file line number Diff line number Diff line change 1
1
import Foundation
2
2
import Himotoki
3
3
4
- struct Repository : Decodable {
4
+ struct Repository : Himotoki . Decodable {
5
5
let id : Int
6
6
let fullName : String
7
7
let stargazersCount : Int
You can’t perform that action at this time.
0 commit comments