Skip to content

Commit

Permalink
Replace Decodable to Himotoki.Decodable
Browse files Browse the repository at this point in the history
  • Loading branch information
ji3g4m6zo6 committed Oct 12, 2017
1 parent f46005f commit c9cdef3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Pagination/GitHubRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension GitHubRequest {
}
}

extension GitHubRequest where Response: Decodable {
extension GitHubRequest where Response: Himotoki.Decodable {
func response(from object: Any, urlResponse: HTTPURLResponse) throws -> Response {
return try decodeValue(object)
}
Expand Down
2 changes: 1 addition & 1 deletion Pagination/PaginationResponse.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import Himotoki

struct SearchResponse<Element: Decodable>: PaginationResponse {
struct SearchResponse<Element: Himotoki.Decodable>: PaginationResponse {
let elements: [Element]
let page: Int
let nextPage: Int?
Expand Down
4 changes: 2 additions & 2 deletions Pagination/PaginationResponseType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import Foundation
import Himotoki

protocol PaginationResponse {
associatedtype Element: Decodable
associatedtype Element: Himotoki.Decodable
var elements: [Element] { get }
var page: Int { get }
var nextPage: Int? { get }
init(elements: [Element], page: Int, nextPage: Int?)
}

struct AnyPaginationResponse<Element: Decodable>: PaginationResponse {
struct AnyPaginationResponse<Element: Himotoki.Decodable>: PaginationResponse {
let elements: [Element]
let page: Int
let nextPage: Int?
Expand Down
2 changes: 1 addition & 1 deletion Pagination/PaginationViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import APIKit
import Action
import Himotoki

class PaginationViewModel<Element: Decodable> {
class PaginationViewModel<Element: Himotoki.Decodable> {
let indicatorViewAnimating: Driver<Bool>
let elements: Driver<[Element]>
let loadError: Driver<Error>
Expand Down
2 changes: 1 addition & 1 deletion Pagination/Repository.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import Himotoki

struct Repository: Decodable {
struct Repository: Himotoki.Decodable {
let id: Int
let fullName: String
let stargazersCount: Int
Expand Down

0 comments on commit c9cdef3

Please sign in to comment.