Skip to content

Commit

Permalink
Refactored the response serializer types to use the Protocol suffix.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnoon committed Sep 6, 2016
1 parent 66712de commit 2cb2782
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/ResponseSerialization.swift
Expand Up @@ -25,7 +25,7 @@
import Foundation

/// The type in which all data response serializers must conform to in order to serialize a response.
public protocol DataResponseSerializerType {
public protocol DataResponseSerializerProtocol {
/// The type of serialized object to be created by this `DataResponseSerializerType`.
associatedtype SerializedObject

Expand All @@ -36,7 +36,7 @@ public protocol DataResponseSerializerType {
// MARK: -

/// A generic `DataResponseSerializerType` used to serialize a request, response, and data into a serialized object.
public struct DataResponseSerializer<Value>: DataResponseSerializerType {
public struct DataResponseSerializer<Value>: DataResponseSerializerProtocol {
/// The type of serialized object to be created by this `DataResponseSerializer`.
public typealias SerializedObject = Value

Expand All @@ -56,7 +56,7 @@ public struct DataResponseSerializer<Value>: DataResponseSerializerType {
// MARK: -

/// The type in which all download response serializers must conform to in order to serialize a response.
public protocol DownloadResponseSerializerType {
public protocol DownloadResponseSerializerProtocol {
/// The type of serialized object to be created by this `DownloadResponseSerializerType`.
associatedtype SerializedObject

Expand All @@ -67,7 +67,7 @@ public protocol DownloadResponseSerializerType {
// MARK: -

/// A generic `DownloadResponseSerializerType` used to serialize a request, response, and data into a serialized object.
public struct DownloadResponseSerializer<Value>: DownloadResponseSerializerType {
public struct DownloadResponseSerializer<Value>: DownloadResponseSerializerProtocol {
/// The type of serialized object to be created by this `DownloadResponseSerializer`.
public typealias SerializedObject = Value

Expand Down Expand Up @@ -120,7 +120,7 @@ extension DataRequest {
///
/// - returns: The request.
@discardableResult
public func response<T: DataResponseSerializerType>(
public func response<T: DataResponseSerializerProtocol>(
queue: DispatchQueue? = nil,
responseSerializer: T,
completionHandler: @escaping (DataResponse<T.SerializedObject>) -> Void)
Expand Down Expand Up @@ -198,7 +198,7 @@ extension DownloadRequest {
///
/// - returns: The request.
@discardableResult
public func response<T: DownloadResponseSerializerType>(
public func response<T: DownloadResponseSerializerProtocol>(
queue: DispatchQueue? = nil,
responseSerializer: T,
completionHandler: @escaping (DownloadResponse<T.SerializedObject>) -> Void)
Expand Down

0 comments on commit 2cb2782

Please sign in to comment.