[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/MFunZero/Coding-iOS/master/Coding_iOS/Models/ProjectMember.m [Back]  [Original]

//
//  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

Web Proxy Viewer  |  New URL  |  Original Page