Initial commit
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// UMComNoticeListDataController.m
|
||||
// UMCommunity
|
||||
//
|
||||
// Created by umeng on 16/5/17.
|
||||
// Copyright © 2016年 Umeng. All rights reserved.
|
||||
//
|
||||
|
||||
#import "UMComNoticeListDataController.h"
|
||||
#import <UMCommunitySDK/UMComDataTypeDefine.h>
|
||||
|
||||
@implementation UMComNoticeListDataController
|
||||
|
||||
- (instancetype)initWithCount:(NSInteger)count
|
||||
{
|
||||
self = [super initWithRequestType:UMComRequestType_CommunityNotification count:count];
|
||||
if (self) {
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
+ (UMComNoticeListDataController *)notificatonDataControllerWithCount:(NSInteger)count
|
||||
{
|
||||
UMComNoticeListDataController *noticeListDataController = [[UMComNoticeListDataController alloc] initWithCount:count];
|
||||
return noticeListDataController;
|
||||
}
|
||||
|
||||
- (void)refreshNewDataCompletion:(UMComDataListRequestCompletion)completion
|
||||
{
|
||||
__weak typeof(self) weakSelf = self;
|
||||
[[UMComDataRequestManager defaultManager] fetchMyNotificationWithCount:self.count completion:^(NSDictionary *responseObject, NSError *error) {
|
||||
[weakSelf handleNewData:responseObject error:error completion:completion];
|
||||
}];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user