forked from coding/Coding-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjectTopic.h
More file actions
executable file
·64 lines (49 loc) · 2.09 KB
/
ProjectTopic.h
File metadata and controls
executable file
·64 lines (49 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// ProjectTopic.h
// Coding_iOS
//
// Created by 王 原闯 on 14-8-20.
// Copyright (c) 2014年 Coding. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "User.h"
#import "Projects.h"
#import "ProjectTopics.h"
@class Project;
@class ProjectTopics;
@interface ProjectTopic : NSObject
@property (readwrite, nonatomic, strong) NSNumber *id, *child_count, *current_user_role_id, *owner_id, *project_id, *parent_id, *number;
@property (readwrite, nonatomic, strong) NSDate *created_at;
@property (readwrite, nonatomic, strong) NSDate *updated_at;
@property (readwrite, nonatomic, strong) NSString *title, *content, *path;
@property (readwrite, strong, nonatomic) NSMutableArray *labels;
@property (readwrite, nonatomic, strong) NSDictionary *propertyArrayMap;
@property (readwrite, nonatomic, strong) User *owner;
@property (readwrite, nonatomic, strong) Project *project;
@property (readwrite, nonatomic, strong) ProjectTopic *parent;
@property (readwrite, nonatomic, strong) ProjectTopics *comments;
@property (readwrite, nonatomic, strong) NSString *nextCommentStr;
@property (readwrite, nonatomic, strong) HtmlMedia *htmlMedia;
@property (assign, nonatomic) CGFloat contentHeight;
@property (strong, nonatomic) NSString *mdTitle, *mdContent;
@property (strong, nonatomic) NSMutableArray *mdLabels;
@property (readwrite, nonatomic, strong) NSNumber *page, *pageSize, *totalPage, *totalRow;
@property (assign, nonatomic) BOOL canLoadMore, willLoadMore, isLoading, isTopicLoading, isTopicEditLoading;
+ (ProjectTopic *)feedbackTopic;
+ (ProjectTopic *)topicWithPro:(Project *)pro;
+ (ProjectTopic *)topicWithId:(NSNumber *)topicId;
- (NSString *)toTopicPath;
- (NSDictionary *)toEditParams;
- (NSString *)toLabelPath;
- (NSDictionary *)toLabelParams;
- (NSString *)toAddTopicPath;
- (NSDictionary *)toAddTopicParams;
- (NSString *)toCommentsPath;
- (NSDictionary *)toCommentsParams;
- (void)configWithComments:(ProjectTopics *)comments;
- (NSString *)toDoCommentPath;
- (NSDictionary *)toDoCommentParams;
- (void)configWithComment:(ProjectTopic *)comment;
- (NSString *)toDeletePath;
- (BOOL)canEdit;
@end