HttpService class

Constructors

HttpService()

Properties

apiURL String
final
consoleURL String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addhashtagPosts({required int? tagId, required int? postId}) Future<Response>
addNewhashtag({required String? tagName}) Future<Response>
addPost({required UserModel user, required String? title, required String? description, required String? type, String? attachedUrl, int? pollQuestionId}) Future<Response>
addReplyComment({required int? postComments, required int? user, required String comment}) Future<Response>
addReport({required int? typeId, required int? userId, required int? postId}) Future<Response>
authenticatePartner({required dynamic firstName, required dynamic profileImg, dynamic about, dynamic token, dynamic lastName, dynamic partnerId}) Future<Response>
authenticateUser({required dynamic firstName, required dynamic lastName, required dynamic about, required dynamic profileImg, required dynamic token, dynamic partnerId}) Future<Response>
createLog(Map<String, dynamic> data) Future<Response>
createPollOption({required int? pollQuestion, required String option}) Future<Response>
createPollQuestion({required String question}) Future<Response>
createPollVote({required int? pollOption, required int? user}) Future<Response>
createStory({required String? text, required String? attachedUrl, required int? user, required String? type}) Future<Response>
fetchAllPollVotes() Future<Response>
fetchAllPosts() Future<Response>
fetchAllReports() Future<Response>
fetchAllSubType() Future<Response>
fetchCommentsByPostId(dynamic postId) Future<Response>
fetchEnableLogs() Future<Response>
fetchFavoritePosts(dynamic currentUserId, dynamic saveId) Future<Response>
fetchPostsByUserId(dynamic id) Future<Response>
fetchReportByPostId(dynamic id) Future<Response>
fetchSubReport(dynamic reportTypeId) Future<Response>
fetchUser(dynamic id) Future<Response>
get(dynamic url, {Map<String, String>? headers}) Future<Response>
getAllHashtags() Future<Response>
getAllOptions() Future<Response>
getAllStories() Future<Response>
getAllVotes() Future<Response>
getHashtagByTagName(dynamic tagName) Future<Response>
getOptionsByQuestionId(dynamic questionId) Future<Response>
getReplayCommentsList() Future<Response>
getUsersRandom(dynamic skip) Future<Response>
getVotesByOptionId(dynamic optionId) Future<Response>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(dynamic url, {Map<String, String>? headers, dynamic body, Encoding? encoding}) Future<Response>
put(dynamic url, {Map<String, String>? headers, dynamic body, Encoding? encoding}) Future<Response>
removeComment({required dynamic commentId}) Future<Response>
removePage({required int? storyId, required int? numPage}) Future<Response>
removePollVote({required dynamic pollVoteId}) Future<Response>
removePost({required dynamic postId}) Future<Response>
removeReplyComment({required dynamic replyId}) Future<Response>
removeReport({required dynamic reportId}) Future<Response>
toString() String
A string representation of this object.
inherited
updatePostReport({required int? postId}) Future<Response>
updateStory({required int? storyId, required String? attachedUrl, required String? text, required String? type}) Future<Response>
updateUserMedia({required dynamic socialMedia, required dynamic userId}) Future<Response>
uploadComment({required int? userId, required int? postId, required String comment}) Future<Response>

Operators

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