Method | Method detail |
---|---|
getChallengeLeaderBoardDetails() | Convenient getter method to get leaderboard data. |
getCuratedRailList() | Convenient getter method to get curated rail list data. |
getCuratedRailDetails() | Convenient getter method to get curated rail detail detail by rail id list data. |
getSearchedChallengesList() | Convenient getter method to get searched challenges list data. |
getSearchedHashtagList() | Convenient getter method to get searched hashtag list data. |
getCuratedRailList() | Convenient getter method to get searched video list data. |
getSearchedUserList() | Convenient getter method to get searched user list data. |
Requested parameter.
hashtagId : hashtag id.
DiscoverData.sharedInstance.getChallengeLeaderBoardDetails(hashtagId: hashtagId) { [weak self] result in
guard let weakSelf = self else { return }
weakSelf.didGetLeaderBoardData(result: result)
// Response to handle
} failure: { [weak self] error, code in
guard let weakSelf = self else { return }
// Error message to handle
}
Requested parameter.
Nil
DiscoverData.sharedInstance.getCuratedRailList() {
[weak self] discoverCurationData in
guard let weakSelf = self else { return }
// Success response to handle
} failure: { [weak self] error, code in
guard let weakSelf = self else { return }
// Error message to handle
}
Requested parameter.
Nil
DiscoverData.sharedInstance.getCuratedRailDetails(railId: railId) { [weak self] (curationDataSeeAllModel) in
guard let weakSelf = self else { return }
// Response success Handle
} failure: { [weak self] (error, code) in
guard let weakSelf = self else { return }
// Handle Error message
}
Requested parameter.
title: "Title of the text"
limit: number of record in one go
offset: page number
DiscoverData.sharedInstance.getSearchedChallengesList(
title: searchTextStr,
limit: 20,
offSet: 1
) { [weak self] result in
guard let weakSelf = self else { return }
// Response handle
} failure: { error, code in
print(error)
}
Requested parameter.
title: "Title of the text"
limit: number of record in one go
offset: page number
DiscoverData.sharedInstance.getSearchedHashtagList(
title: searchTextStr,
limit: 20,
offSet: 1
) { [weak self] result in
guard let weakSelf = self else { return }
// Response handle
} failure: { error, code in
print(error)
}
Requested parameter.
SearchedTeext: "Title of the text"
limit: number of record in one go
offset: page number
DiscoverData.sharedInstance.getSearchedVideoList(searchText: searchText, limit: limitVideo, offset: pageOffset, success: {
[weak self] result in
guard let weakSelf = self else { return }
// Searched video list
}) { [weak self] error, code in
guard let weakSelf = self else { return }
weakSelf.isLoading = false
weakSelf.showAlertClosureWithError?(error, code)
}
Requested parameter.
SearchedTeext: "Title of the text"
limit: number of record in one go
offset: page number
DiscoverData.sharedInstance.getSearchedUserList(searchText: searchText) { [weak self] result in
guard let weakSelf = self else { return }
// video list response to handle
} failure: { [weak self] error, code in
guard let weakSelf = self else { return }
// Error handle
}