FeedRepository class
Methods
-
addhashtagPosts(dynamic tagId, dynamic postId)
→ Future<HashtagPostsModel?>
-
-
addNewhashtag(dynamic tagName)
→ Future<HashtagModel?>
-
-
addPost({required dynamic user, dynamic title, dynamic description, dynamic type, dynamic attachedUrl, dynamic pollQuestionId})
→ Future<PostModel?>
-
-
-
addReport(dynamic typeId, dynamic userId, dynamic postId)
→ Future<ReportModel?>
-
-
authenticatePartner({dynamic firstName, dynamic profileImg, dynamic socialMedia})
→ Future<UserModel?>
-
-
authenticateUser({dynamic firstName, dynamic lastName, dynamic about, dynamic profileImg, dynamic token, dynamic socialMedia, dynamic partnerId})
→ Future<UserModel?>
-
-
createPollOption(dynamic pollQuestion, dynamic option)
→ Future<PollOptionModel?>
-
-
createPollQuestion(dynamic question)
→ Future<PollQuestionModel?>
-
-
createPollVote(dynamic pollOption, dynamic user)
→ Future<PollVoteModel?>
-
-
createRemoteLog(Map<String, dynamic> data)
→ void
-
-
createStory({dynamic text, dynamic user, dynamic attachedUrl, dynamic type})
→ Future<StoryModel?>
-
-
fetchAllReports()
→ Future<List<ReportTypeModel>>
-
-
fetchAllSubType()
→ Future<List<ReportSubTypeModel>>
-
-
fetchEnableLogs()
→ void
-
-
fetchFavoritePosts(dynamic currentUserId, dynamic saveId)
→ Future<List<ReportModel>>
-
-
-
fetchPostReports(dynamic postId)
→ Future<List<ReportModel>>
-
-
fetchPostsByUserId(dynamic id)
→ Future<List<PostModel>>
-
-
fetchSubReport(dynamic reportTypeId)
→ Future<List<ReportSubTypeModel>>
-
-
fetchUserData(dynamic userId)
→ Future<UserModel?>
-
-
getAllHashtags()
→ Future<List<HashtagModel>>
-
-
getAllOptions()
→ Future<List<PollOptionModel>>
-
-
getAllStories()
→ Future<List<StoryModel>>
-
-
getAllVotes()
→ Future<List<PollVoteModel?>>
-
-
getHashtagPostByTagName(String tagName)
→ Future<List<HashtagPostsModel>?>
-
-
getOptionsByQuestionId(dynamic questionId)
→ Future<List<PollOptionModel>>
-
-
-
getStoriesToday()
→ Future<List<StoryModel>>
-
-
getUsersRandom(dynamic skip)
→ Future<List<UserModel>?>
-
-
getVotesByOptionId(dynamic optionId)
→ Future<List<PollVoteModel>>
-
-
loadPosts()
→ Future<List<PostModel>>
-
-
Log({required String className, required String methodName, required String text, required String type, required String logName})
→ void
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
-
removePage(int? id, int? numPage)
→ Future<StoryModel?>
-
-
removePollVote(dynamic pollVoteId)
→ Future<bool>
-
-
removePost(dynamic postId)
→ Future<bool>
-
-
-
removeReport(dynamic reportId)
→ Future<bool>
-
-
setPackageInfo()
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
updatePostReport(dynamic postId)
→ Future<bool>
-
-
updateStory({dynamic id, dynamic attachedUrl, dynamic text, dynamic type})
→ Future<bool?>
-
-
updateUserMedia({required dynamic socialMedia, dynamic userId})
→ Future<UserModel?>
-