ifish/Ifish/UMCommunity/UMCommunitySDK/UMComDataController/Comment/UMComCommentListDataControl...

79 lines
2.2 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// UMComCommentListDataController.h
// UMCommunity
//
// Created by umeng on 16/5/18.
// Copyright © 2016年 Umeng. All rights reserved.
//
#import "UMComListDataController.h"
#import "UMComResouceDefines.h"
@class UMComFeed;
typedef void(^UMComCommentListOperationCompletion)(NSError *error);
@interface UMComCommentListDataController : UMComListDataController
- (void)deletedComment:(UMComComment *)comment completion:(UMComCommentListOperationCompletion)completion;
- (void)likeComment:(UMComComment *)comment completion:(UMComCommentListOperationCompletion)completion;
- (void)spamComment:(UMComComment *)comment completion:(UMComCommentListOperationCompletion)completion;
- (void)commentFeed:(UMComFeed *)feed
content:(NSString *)content
images:(NSArray *)images
completion:(UMComDataRequestCompletion)completion;
- (void)replyCommentFeed:(UMComFeed *)feed
comment:(UMComComment *)comment
content:(NSString *)content
images:(NSArray *)images
completion:(UMComDataRequestCompletion)completion;
@end
@interface UMComFeedCommnetListDataController : UMComCommentListDataController
@property (nonatomic, assign)UMComCommentListSortType commentSortType;
@property (nonatomic, copy) NSString *comment_uid;
@property (nonatomic, copy) NSString *feedId;
/**
获取Feed所有评论的初始化方法
@param count 单页请求评论数量
@param feedId FeedId
@param comment_uid 发出评论用户id(用于实现只看楼主)
@param order: commentorderByTimeDesc时间倒序排列commentorderByTimeAsc时间正序排列不传默认为倒序
@returns 获取Feed所有评论请求对象
*/
- (instancetype)initWithCount:(NSInteger)count
feedId:(NSString *)feedId
commentUserId:(NSString *)comment_uid
order:(UMComCommentListSortType)orderType;
@end
@interface UMComUserReceivedCommentListDataController : UMComCommentListDataController
- (instancetype)initWithCount:(NSInteger)count;
@end
@interface UMComUserSentCommentListDataController : UMComCommentListDataController
- (instancetype)initWithCount:(NSInteger)count;
@end