forked from BigShow1949/BigShow1949
-
Notifications
You must be signed in to change notification settings - Fork 0
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
big show
committed
Feb 13, 2019
1 parent
ab27b90
commit 88a8f1f
Showing
31 changed files
with
446 additions
and
47 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
Binary file modified
BIN
+0 Bytes
(100%)
BigShow1949/Classes/05 - KnowledgePoint(零散知识点)/JS/.DS_Store
Binary file not shown.
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
14 changes: 14 additions & 0 deletions
14
BigShow1949/Classes/10 - DesignPattern(设计模式)/Viper/Note/LoginModule/Builder/YFLoginBuilder.h
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,14 @@ | ||
// | ||
// YFLoginBuilder.h | ||
// BigShow1949 | ||
// | ||
// Created by big show on 2018/12/11. | ||
// Copyright © 2018年 BigShowCompany. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
@protocol YFLoginViewDelegate,YFViperRouter; | ||
@interface YFLoginBuilder : NSObject | ||
+ (UIViewController *)viewWithMessage:(NSString *)message delegate:(id<YFLoginViewDelegate>)delegate router:(id<YFViperRouter>)router; | ||
|
||
@end |
41 changes: 41 additions & 0 deletions
41
BigShow1949/Classes/10 - DesignPattern(设计模式)/Viper/Note/LoginModule/Builder/YFLoginBuilder.m
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,41 @@ | ||
// | ||
// YFLoginBuilder.m | ||
// BigShow1949 | ||
// | ||
// Created by big show on 2018/12/11. | ||
// Copyright © 2018年 BigShowCompany. All rights reserved. | ||
// | ||
|
||
#import "YFLoginBuilder.h" | ||
|
||
#import "YFLoginViewController.h" | ||
#import "YFLoginViewPresenter.h" | ||
#import "YFLoginInteractor.h" | ||
#import "YFLoginViewWireframe.h" | ||
|
||
#import "NSObject+YFViperAssembly.h" | ||
|
||
@implementation YFLoginBuilder | ||
+ (UIViewController *)viewWithMessage:(NSString *)message delegate:(id<YFLoginViewDelegate>)delegate router:(id<YFViperRouter>)router { | ||
|
||
YFLoginViewController *view = [[YFLoginViewController alloc] init]; | ||
view.delegate = delegate; | ||
view.message = message; | ||
[self buildView:(id<YFViperViewPrivate>)view router:router]; | ||
|
||
return view; | ||
} | ||
|
||
+ (void)buildView:(id<YFViperViewPrivate>)view router:(id<YFViperRouter>)router { | ||
YFLoginViewPresenter *presenter = [[YFLoginViewPresenter alloc] init]; | ||
YFLoginInteractor *interactor = [[YFLoginInteractor alloc] init]; | ||
id<YFViperWireframePrivate> wireframe = (id)[[YFLoginViewWireframe alloc] init]; | ||
|
||
[self assembleViperForView:view | ||
presenter:(id<YFViperPresenterPrivate>)presenter | ||
interactor:(id<YFViperInteractorPrivate>)interactor | ||
wireframe:(id<YFViperWireframePrivate>)wireframe | ||
router:(id<YFViperRouter>)router]; | ||
} | ||
|
||
@end |
Oops, something went wrong.