Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from tianshaojie/pr/24
Http Response 封装处理
- Loading branch information
Showing
6 changed files
with
75 additions
and
112 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
54 changes: 0 additions & 54 deletions
54
app/src/main/java/com/yuzhi/fine/http/JsonResponseHandler.java
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
app/src/main/java/com/yuzhi/fine/http/RestApiResponse.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,19 @@ | ||
package com.yuzhi.fine.http; | ||
|
||
/** | ||
* Created by tiansj on 2016/11/30. | ||
*/ | ||
|
||
public class RestApiResponse { | ||
|
||
public static final int STATUS_SUCCESS = 200; | ||
public static final int STATUS_FAILURE = 500; | ||
|
||
public Head head; | ||
public String body; | ||
|
||
public static class Head { | ||
public int status; | ||
} | ||
|
||
} |