This commit is contained in:
wu736139669
2015-06-28 13:02:55 +08:00
parent bf948ed52f
commit 0afa62bac0
4 changed files with 25 additions and 40 deletions
@@ -170,45 +170,13 @@
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Ash_AWord/ViewControllers/My/MyRelateViewController.m" filePath = "Ash_AWord/ViewControllers/My/MyRelateViewController.m"
timestampString = "457159203.288928" timestampString = "457159946.984524"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "148" startingLineNumber = "152"
endingLineNumber = "148" endingLineNumber = "152"
landmarkName = "-tableView:didSelectRowAtIndexPath:" landmarkName = "-tableView:didSelectRowAtIndexPath:"
landmarkType = "5"> landmarkType = "5">
<Locations>
<Location
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[MyRelateViewController tableView:didSelectRowAtIndexPath:]"
moduleName = "Ash_AWord"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/xmfish/Documents/Ash_Soft/Ash_AWord/Ash_AWord/ViewControllers/My/MyRelateViewController.m"
timestampString = "457159203.293347"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "148"
endingLineNumber = "148"
offsetFromSymbolStart = "177">
</Location>
<Location
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "__60-[MyRelateViewController tableView:didSelectRowAtIndexPath:]_block_invoke"
moduleName = "Ash_AWord"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/xmfish/Documents/Ash_Soft/Ash_AWord/Ash_AWord/ViewControllers/My/MyRelateViewController.m"
timestampString = "457159203.293562"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "148"
endingLineNumber = "148"
offsetFromSymbolStart = "43">
</Location>
</Locations>
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy <BreakpointProxy
@@ -218,11 +186,11 @@
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Ash_AWord/ViewControllers/My/MyRelateViewController.m" filePath = "Ash_AWord/ViewControllers/My/MyRelateViewController.m"
timestampString = "457159211.685007" timestampString = "457159946.984524"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "149" startingLineNumber = "153"
endingLineNumber = "149" endingLineNumber = "153"
landmarkName = "-tableView:didSelectRowAtIndexPath:" landmarkName = "-tableView:didSelectRowAtIndexPath:"
landmarkType = "5"> landmarkType = "5">
</BreakpointContent> </BreakpointContent>
@@ -230,7 +198,7 @@
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
shouldBeEnabled = "Yes" shouldBeEnabled = "No"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Ash_AWord/ViewModels/Common/CommentViewModel.m" filePath = "Ash_AWord/ViewModels/Common/CommentViewModel.m"
@@ -41,7 +41,11 @@
#pragma mark 标记已读 #pragma mark 标记已读
-(void)readAll -(void)readAll
{ {
[RequireEngine requireWithProperty:[CommentViewModel requireReadAllComment] completionBlock:^(id viewModel) {
if ([viewModel success]) {
[self headerBeginRefreshing];
}
} failedBlock:nil];
} }
#pragma mark MJRefreshDelegate #pragma mark MJRefreshDelegate
-(void)headerRereshing -(void)headerRereshing
@@ -32,4 +32,5 @@
+(PropertyEntity*)requireLoadMyCommentWithPage:(NSInteger)page withPage_size:(NSInteger)page_size; +(PropertyEntity*)requireLoadMyCommentWithPage:(NSInteger)page withPage_size:(NSInteger)page_size;
+(PropertyEntity*)requireReadCommentWithCommentId:(NSInteger)commentId; +(PropertyEntity*)requireReadCommentWithCommentId:(NSInteger)commentId;
+(PropertyEntity*)requireReadAllComment;
@end @end
@@ -111,4 +111,16 @@
}; };
return pro; return pro;
} }
+(PropertyEntity*)requireReadAllComment
{
PropertyEntity *pro = [[PropertyEntity alloc] init];
pro.requireType = HTTPRequestTypeWithPOSTDATA;
pro.responesOBJ = self.class;
NSDictionary* dic = @{
};
pro.pro = @{@"root": dic,
@"command": @"10207",
};
return pro;
}
@end @end