forked from coding/Coding-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjectMember.m
More file actions
executable file
·36 lines (34 loc) · 853 Bytes
/
ProjectMember.m
File metadata and controls
executable file
·36 lines (34 loc) · 853 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
//
// ProjectMember.m
// Coding_iOS
//
// Created by 王 原闯 on 14-8-16.
// Copyright (c) 2014年 Coding. All rights reserved.
//
#import "ProjectMember.h"
@implementation ProjectMember
+ (ProjectMember *)member_All{
ProjectMember *mem = [[ProjectMember alloc] init];
mem.user_id = [NSNumber numberWithInteger:-1];
mem.user = nil;
return mem;
}
- (NSString *)editAlias{
if (!_editAlias) {
_editAlias = _alias ?: @"";
}
return _editAlias;
}
- (NSNumber *)editType{
if (!_editType) {
_editType = _type;
}
return _editType;
}
- (NSString *)toQuitPath{
return [NSString stringWithFormat:@"api/project/%d/quit", _project_id.intValue];
}
- (NSString *)toKickoutPath{
return [NSString stringWithFormat:@"api/project/%@/kickout/%@", _project_id.stringValue, _user_id.stringValue];
}
@end