-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathEABoardTaskList.m
More file actions
42 lines (34 loc) · 896 Bytes
/
EABoardTaskList.m
File metadata and controls
42 lines (34 loc) · 896 Bytes
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
//
// EABoardTaskList.m
// Coding_iOS
//
// Created by Easeeeeeeeee on 2018/4/27.
// Copyright © 2018年 Coding. All rights reserved.
//
#import "EABoardTaskList.h"
@implementation EABoardTaskList
- (instancetype)init
{
self = [super init];
if (self) {
self.propertyArrayMap = @{@"list": @"Task"};
}
return self;
}
- (BOOL)canEdit{
return _type == EABoardTaskListCustom;
}
- (BOOL)isBlankType{
return _type == EABoardTaskListBlank;
}
- (NSString *)toTaskListPath{
return [NSString stringWithFormat:@"api/user/%@/project/%@/tasks/board/%@/list/%@/tasks", _curPro.owner_user_name, _curPro.name, _board_id, _id];
}
+ (instancetype)blankBoardTLWithProject:(Project *)project{
EABoardTaskList *blankItem = [self new];
blankItem.id = @(-1);
blankItem.curPro = project;
blankItem.type = EABoardTaskListBlank;
return blankItem;
}
@end