| | |
| | | [self mangerPostWithURL:url WithMutableDictionary:dic withBlock:block]; |
| | | } |
| | | |
| | | - (void)pptvVideoPlayStateDataWith:(NSMutableDictionary *)dic withBlock:(YthNetWorkBlock)block{ |
| | | NSString *url = [NSString stringWithFormat:@"%@/video/play/getPPTVVideoPlayState",domainHTTP]; |
| | | [self mangerPostWithURL:url WithMutableDictionary:dic withBlock:block]; |
| | | } |
| | | /** |
| | | * 分割========================================================================================================================================================= |
| | | */ |
| | |
| | | }]; |
| | | } |
| | | |
| | | - (void)fetchPPTVVideoPlayStateWith:(NSString *)uid WithSystem:(NSString *)system WithLoginUid:(NSString *)loginUid url:(NSString *)url vid:(NSString *)vid cid:(NSString *)cid withBlock:(YthNetWorkBlock)block { |
| | | |
| | | NSMutableDictionary *dic = [YTHNetdata pptvVideoPlayStateWithUid:uid withSystem:system WithLoginUid:loginUid vid:vid cid:cid]; |
| | | |
| | | [self pptvVideoPlayStateDataWith:dic withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *data = (NSDictionary *)result; |
| | | block(TRUE , data , nil); |
| | | |
| | | } else { |
| | | block(FALSE , nil , error); |
| | | } |
| | | }]; |
| | | } |
| | | |
| | | @end |