Get Trending challenges search list record set
method:
API Class :
Trending
Method :
getTrendingHashtagSearchList
Convenient getter method to get trending challenges
list.
Request:
public func getTrendingHashTagList(limit: Int,
offSet: Int,
searchText: String,
success: @escaping(TrendingChallengesSearchResultModel) -> (),
failure: @escaping(String, Int) -> ())
Requested parameter:
searchtext: title of the content
limit: Record limit
offset: page index
Response:
-
Response Object :
Trending hashtag model object
- Keys which object have:
-
classField :
class field
-
id :
id of the content
-
backgroundImage :
Background image to bind with UIImageView
-
bannerImage :
banner image to bind with uiimageview
-
createdAt :
Timestamp to recoeginaiose the created date and
time
-
createdBy :
crated user name
-
createdTimestamp :
Timestamp to recoeginaiose the created date and
time
-
descriptionField :
description
-
hashtagId :
hashtag ID
-
image :
Image of the video tag with selected hashtag
-
isChallenge :
is challenge
-
status :
Status
-
taggedVideos :
[UserData]?
-
type :
type of the video
-
title :
Title video
-
updatedAt :
Timestamp to recoeginaiose the created date and
time
-
updatedTimestamp :
Timestamp to recoeginaiose the created date and
time
-
videoCount :
video count
How to call?
Trending.sharedInstance.getTrendingHashtagList(
limit:10,
offset: 1,
searchText:””,
success: { NotificationDataModel in
guard let NotificationDataList = NotificationDataModel?.data else { return }
}) { [weak self] error, code in
guard let weakSelf = self else { return }
}