FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Coding-iOS/Coding_iOS/Models/EABoardTaskList.m at master · magic-coder/Coding-iOS · GitHub
magic-coder
/
Coding-iOS
Public
forked from
coding/Coding-iOS
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Models
/
EABoardTaskList.m
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (34 loc) · 896 Bytes
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Models
/
EABoardTaskList.m
Copy path
File metadata and controls
42 lines (34 loc) · 896 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
Back
|
FazBrowse Home
|
New Git URL