-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ryan
committed
Aug 3, 2014
1 parent
57d2bca
commit 57dacf7
Showing
18 changed files
with
319 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// LoginHandler.h | ||
// RTLibrary-ios | ||
// | ||
// Created by Ryan on 14-8-3. | ||
// Copyright (c) 2014年 zlycare. All rights reserved. | ||
// | ||
|
||
#import "BaseHandler.h" | ||
#import "UserEntity.h" | ||
|
||
@interface LoginHandler : BaseHandler | ||
|
||
/** | ||
* 用户登录业务逻辑处理 | ||
* | ||
* @param user | ||
* @param success | ||
* @param failed | ||
*/ | ||
- (void)executeLoginTaskWithUser:(UserEntity *)user success:(SuccessBlock)success failed:(FailedBlock)failed; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// LoginHandler.m | ||
// RTLibrary-ios | ||
// | ||
// Created by Ryan on 14-8-3. | ||
// Copyright (c) 2014年 zlycare. All rights reserved. | ||
// | ||
|
||
#import "LoginHandler.h" | ||
|
||
@implementation LoginHandler | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// LoginStorage.h | ||
// RTLibrary-ios | ||
// | ||
// Created by Ryan on 14-8-3. | ||
// Copyright (c) 2014年 zlycare. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface LoginStorage : NSObject | ||
|
||
/** | ||
* 获取登录用户名 | ||
* | ||
* @return | ||
*/ | ||
+ (NSString *)userName; | ||
|
||
/** | ||
* 保存登录用户名 | ||
* | ||
* @param userName | ||
*/ | ||
+ (void)saveUserName:(NSString *)userName; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// LoginStorage.m | ||
// RTLibrary-ios | ||
// | ||
// Created by Ryan on 14-8-3. | ||
// Copyright (c) 2014年 zlycare. All rights reserved. | ||
// | ||
|
||
#import "LoginStorage.h" | ||
#import "UserDefaultsUtils.h" | ||
|
||
static NSString * const USER_NAME = @"username"; | ||
|
||
@implementation LoginStorage | ||
|
||
+ (void)saveUserName:(NSString *)userName | ||
{ | ||
[UserDefaultsUtils saveValue:userName forKey:USER_NAME]; | ||
} | ||
|
||
+ (NSString *)userName | ||
{ | ||
return [UserDefaultsUtils valueWithKey:USER_NAME]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// LoginView.h | ||
// RTLibrary-ios | ||
// | ||
// Created by Ryan on 14-8-3. | ||
// Copyright (c) 2014年 zlycare. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface LoginView : UIView | ||
|
||
@end |
Oops, something went wrong.