FeedRepository class

Constructors

FeedRepository(HttpService _httpService)

Properties

currentUser UserModel?
no setter
enabledLogsList List<String>
no setter
hashCode int
The hash code for this object.
no setterinherited
packageInfo → PackageInfo?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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?>
addReplyComment(dynamic postComments, dynamic user, dynamic comment) Future<ReplyCommentModel?>
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>>
fetchPostComments(dynamic postId) Future<List<PostCommentModel>>
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>>
getReplayCommentsList() Future<List<ReplyCommentModel>?>
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
removeComment(dynamic commentId) Future<bool>
removePage(int? id, int? numPage) Future<StoryModel?>
removePollVote(dynamic pollVoteId) Future<bool>
removePost(dynamic postId) Future<bool>
removeReplyComment(dynamic replyId) 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?>

Operators

operator ==(Object other) bool
The equality operator.
inherited