Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Update documentation to match returned types.
Browse files Browse the repository at this point in the history
  • Loading branch information
newboadki committed Dec 10, 2018
1 parent 5821ffa commit 2de5361
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions MJSwiftCore/Classes/Repository/DataSource.swift
Expand Up @@ -58,14 +58,14 @@ public protocol PutDataSource : DataSource {
/// Put by query method
///
/// - Parameter query: An instance conforming to Query that encapsules the get query information
/// - Returns: A future of Boolean type. If the operation succeeds, the future will be resolved as true.
/// - Returns: A future of T type. Some data sources might add some extra fields after the put operation, e.g. id or timestamp fields.
@discardableResult
func put(_ value: T?, in query: Query) -> Future<T>

/// Put by query method
///
/// - Parameter query: An instance conforming to Query that encapsules the get query information
/// - Returns: A future of Boolean type. If the operation succeeds, the future will be resolved as true.
/// - Returns: A future of T type. Some data sources might add some extra fields after the put operation, e.g. id or timestamp fields.
@discardableResult
func putAll(_ array: [T], in query: Query) -> Future<[T]>
}
Expand All @@ -89,14 +89,14 @@ public protocol DeleteDataSource : DataSource {
/// Delete by query method
///
/// - Parameter query: An instance conforming to Query that encapusles the delete query information
/// - Returns: A future of Boolean type. If the operation succeeds, the future will be resolved as true.
/// - Returns: A future of Void type.
@discardableResult
func delete(_ query: Query) -> Future<Void>

/// Delete by query method
///
/// - Parameter query: An instance conforming to Query that encapusles the delete query information
/// - Returns: A future of Boolean type. If the operation succeeds, the future will be resolved as true.
/// - Returns: A future of Void type.
@discardableResult
func deleteAll(_ query: Query) -> Future<Void>
}
Expand Down
8 changes: 4 additions & 4 deletions MJSwiftCore/Classes/Repository/Repository.swift
Expand Up @@ -80,14 +80,14 @@ public protocol PutRepository : Repository {
/// Put by query method
///
/// - Parameter query: An instance conforming to Query that encapsules the get query information
/// - Returns: A future of Boolean type. If the operation succeeds, the future will be resolved as true.
/// - Returns: A future of T type. Some data sources might add some extra fields after the put operation, e.g. id or timestamp fields.
@discardableResult
func put(_ value: T?, in query: Query, operation: Operation) -> Future<T>

/// Put by query method
///
/// - Parameter query: An instance conforming to Query that encapsules the get query information
/// - Returns: A future of Boolean type. If the operation succeeds, the future will be resolved as true.
/// - Returns: A future of T type. Some data sources might add some extra fields after the put operation, e.g. id or timestamp fields.
@discardableResult
func putAll(_ array: [T], in query: Query, operation: Operation) -> Future<[T]>
}
Expand All @@ -109,14 +109,14 @@ public protocol DeleteRepository : Repository {
/// Delete by query method
///
/// - Parameter query: An instance conforming to Query that encapusles the delete query information
/// - Returns: A future of Boolean type. If the operation succeeds, the future will be resolved as true.
/// - Returns: A future of Void type.
@discardableResult
func delete(_ query: Query, operation: Operation) -> Future<Void>

/// Delete by query method
///
/// - Parameter query: An instance conforming to Query that encapusles the delete query information
/// - Returns: A future of Boolean type. If the operation succeeds, the future will be resolved as true.
/// - Returns: A future of Void type.
@discardableResult
func deleteAll(_ query: Query, operation: Operation) -> Future<Void>
}
Expand Down

0 comments on commit 2de5361

Please sign in to comment.