forked from tome34/frameDemoMo2
-
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
Showing
19 changed files
with
88 additions
and
31 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<resources> | ||
<string name="app_name">frameDemoMo2</string> | ||
<string name="app_main_name">frameDemo</string> | ||
</resources> |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<resources> | ||
|
||
<string name="app_name">AndroidFrame</string> | ||
</resources> |
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
2 changes: 1 addition & 1 deletion
2
...ava/com/example/tome/debug/MyAppCart.java → ...va/com/example/tome/module/MyAppCart.java
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
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
20 changes: 20 additions & 0 deletions
20
..._welfare/src/main/java/com/example/welfare/module_welfare/contract/SaveImageContract.java
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,20 @@ | ||
package com.example.welfare.module_welfare.contract; | ||
|
||
import com.example.tome.component_base.base.inter.AbstractPresenter; | ||
import com.example.tome.component_base.base.inter.BaseView; | ||
|
||
/** | ||
* @Created by TOME . | ||
* @时间 2018/6/12 16:41 | ||
* @描述 ${TODO} | ||
*/ | ||
|
||
public interface SaveImageContract { | ||
interface View extends BaseView{ | ||
void showSaveSuccess(); | ||
} | ||
|
||
interface Presenter extends AbstractPresenter<View>{ | ||
void downloadImage(); | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...elfare/src/main/java/com/example/welfare/module_welfare/presenter/SaveImagePresenter.java
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,34 @@ | ||
package com.example.welfare.module_welfare.presenter; | ||
|
||
import com.example.tome.component_base.base.BasePresenter; | ||
import com.example.welfare.module_welfare.api.ApiService; | ||
import com.example.welfare.module_welfare.api.INetCallback; | ||
import com.example.welfare.module_welfare.api.ModelService; | ||
import com.example.welfare.module_welfare.contract.SaveImageContract; | ||
|
||
import io.reactivex.Observable; | ||
import okhttp3.ResponseBody; | ||
|
||
/** | ||
* @Created by TOME . | ||
* @时间 2018/6/12 16:37 | ||
* @描述 ${下载图片} | ||
*/ | ||
|
||
public class SaveImagePresenter extends BasePresenter<SaveImageContract.View> implements SaveImageContract.Presenter { | ||
|
||
@Override | ||
public void downloadImage() { | ||
addSubscribe(ModelService.getRemoteData(true, mView, new ModelService.MethodSelect<ResponseBody>() { | ||
@Override | ||
public Observable<ResponseBody> selectM(ApiService service) { | ||
return service.downPic("1"); | ||
} | ||
}, new INetCallback<ResponseBody>() { | ||
@Override | ||
public void onSuccess(ResponseBody result) { | ||
|
||
} | ||
})); | ||
} | ||
} |