forked from jeasonlzy/okhttp-OkGo
-
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
41 changed files
with
406 additions
and
564 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
21 changes: 21 additions & 0 deletions
21
app/src/main/java/com/lzy/okhttpdemo/model/LzyResponse.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,21 @@ | ||
package com.lzy.okhttpdemo.model; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* ================================================ | ||
* 作 者:jeasonlzy(廖子尧)Github地址:https://github.com/jeasonlzy | ||
* 版 本:1.0 | ||
* 创建日期:16/9/28 | ||
* 描 述: | ||
* 修订历史: | ||
* ================================================ | ||
*/ | ||
public class LzyResponse<T> implements Serializable { | ||
|
||
private static final long serialVersionUID = 5213230387175987834L; | ||
|
||
public int code; | ||
public String msg; | ||
public T data; | ||
} |
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/lzy/okhttpdemo/model/SimpleResponse.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,27 @@ | ||
package com.lzy.okhttpdemo.model; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* ================================================ | ||
* 作 者:jeasonlzy(廖子尧)Github地址:https://github.com/jeasonlzy | ||
* 版 本:1.0 | ||
* 创建日期:16/9/28 | ||
* 描 述: | ||
* 修订历史: | ||
* ================================================ | ||
*/ | ||
public class SimpleResponse implements Serializable { | ||
|
||
private static final long serialVersionUID = -1477609349345966116L; | ||
|
||
public int code; | ||
public String msg; | ||
|
||
public LzyResponse toLzyResponse() { | ||
LzyResponse lzyResponse = new LzyResponse(); | ||
lzyResponse.code = code; | ||
lzyResponse.msg = msg; | ||
return lzyResponse; | ||
} | ||
} |
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
Oops, something went wrong.