EkoUserRepository
@interface EkoUserRepository : NSObject <EkoUserListFeedServicable>
Repository provides access users and collections
-
Search an user base on the display name
Declaration
Objective-C
- (nonnull EkoCollection<EkoUser *> *)searchUser:(nonnull NSString *)displayName sortBy:(EkoUserSortOption)sortBy;
Swift
func searchUser(_ displayName: String, sortBy: EkoUserSortOption) -> EkoCollection<EkoUser>
Parameters
displayName
The display name of the user we want to search
sortBy
The sort option provided by EkoUserSortOption
Return Value
returns the EkoCollection of all EkoUsers with the desired displayName
-
Get all of the available users
Declaration
Objective-C
- (nonnull EkoCollection<EkoUser *> *)getAllUsersSortedBy: (EkoUserSortOption)sortBy;
Swift
func getAllUsersSorted(by sortBy: EkoUserSortOption) -> EkoCollection<EkoUser>
Parameters
sortBy
The sort option provided by EkoUserSortOption
Return Value
returns the EkoCollection of all EkoUsers