-
Notifications
You must be signed in to change notification settings - Fork 1
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
14 changed files
with
189 additions
and
54 deletions.
There are no files selected for viewing
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
40 changes: 40 additions & 0 deletions
40
app/src/main/java/com/example/a47253/tvproject/bean/ResponseBean.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,40 @@ | ||
package com.example.a47253.tvproject.bean; | ||
|
||
public class ResponseBean { | ||
private String resultCode; | ||
private String resultMsg; | ||
private Object data; | ||
|
||
public ResponseBean() { | ||
} | ||
|
||
public ResponseBean(String resultCode, String resultMsg, Object data) { | ||
this.resultCode = resultCode; | ||
this.resultMsg = resultMsg; | ||
this.data = data; | ||
} | ||
|
||
public String getResultCode() { | ||
return resultCode; | ||
} | ||
|
||
public void setResultCode(String resultCode) { | ||
this.resultCode = resultCode; | ||
} | ||
|
||
public String getResultMsg() { | ||
return resultMsg; | ||
} | ||
|
||
public void setResultMsg(String resultMsg) { | ||
this.resultMsg = resultMsg; | ||
} | ||
|
||
public Object getData() { | ||
return data; | ||
} | ||
|
||
public void setData(Object data) { | ||
this.data = data; | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/example/a47253/tvproject/retrofit/VideoRequest.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,12 @@ | ||
package com.example.a47253.tvproject.retrofit; | ||
|
||
import com.example.a47253.tvproject.bean.ResponseBean; | ||
|
||
|
||
import retrofit2.Call; | ||
import retrofit2.http.GET; | ||
|
||
public interface VideoRequest { | ||
@GET("commonModel/videoManager/selectVideoAll") | ||
Call<ResponseBean> selectVideoAll(); | ||
} |
44 changes: 44 additions & 0 deletions
44
app/src/main/java/com/example/a47253/tvproject/utils/NetWorkManager.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,44 @@ | ||
package com.example.a47253.tvproject.utils; | ||
|
||
public class NetWorkManager { | ||
// private static NetWorkManager mInstance; | ||
// private static Retrofit retrofit; | ||
// private static volatile VideoRequest request = null; | ||
// | ||
// public static NetWorkManager getInstance() { | ||
// if (mInstance == null) { | ||
// synchronized (NetWorkManager.class) { | ||
// if (mInstance == null) { | ||
// mInstance = new NetWorkManager(); | ||
// } | ||
// } | ||
// } | ||
// return mInstance; | ||
// } | ||
// | ||
// /** | ||
// * 初始化必要对象和参数 | ||
// */ | ||
// public void init() { | ||
// // 初始化okhttp | ||
// OkHttpClient client = new OkHttpClient.Builder() | ||
// .build(); | ||
// | ||
// // 初始化Retrofit | ||
// retrofit = new Retrofit.Builder() | ||
// .client(client) | ||
// .baseUrl(VideoRequest.HOST) | ||
// .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) | ||
// .addConverterFactory(GsonConverterFactory.create()) | ||
// .build(); | ||
// } | ||
// | ||
// public static VideoRequest getRequest() { | ||
// if (request == null) { | ||
// synchronized (VideoRequest.class) { | ||
// request = retrofit.create(VideoRequest.class); | ||
// } | ||
// } | ||
// return request; | ||
// } | ||
} |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Sun Mar 03 15:58:26 CST 2019 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip |