com.example.retrofit.entity.resulte.SubjectResulte Java Examples

The following examples show how to use com.example.retrofit.entity.resulte.SubjectResulte. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CombinApiActivity.java    From RxjavaRetrofitDemo-string-master with MIT License 5 votes vote down vote up
@Override
public void onNext(String resulte, String method) {
    BaseResultEntity<ArrayList<SubjectResulte>> subjectResulte = JSONObject.parseObject(resulte, new
            TypeReference<BaseResultEntity<ArrayList<SubjectResulte>>>() {
            });
    tvMsg.setText("统一post返回:\n" + subjectResulte.getData().toString());
}
 
Example #2
Source File: MainActivity.java    From RxjavaRetrofitDemo-master with MIT License 5 votes vote down vote up
@Override
public void onCacheNext(String cache) {
    /*缓存回调*/
    Gson gson = new Gson();
    java.lang.reflect.Type type = new TypeToken<BaseResultEntity<List<SubjectResulte>>>() {
    }.getType();
    BaseResultEntity resultEntity = gson.fromJson(cache, type);
    tvMsg.setText("缓存返回:\n" + resultEntity.getData().toString());
}
 
Example #3
Source File: MainActivity.java    From RxjavaRetrofitDemo-master with MIT License 4 votes vote down vote up
@Override
public void onNext(List<SubjectResulte> subjects) {
    tvMsg.setText("网络返回:\n" + subjects.toString());
}
 
Example #4
Source File: HttpPostService.java    From RxjavaRetrofitDemo-master with MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("AppFiftyToneGraph/videoLink")
Observable<BaseResultEntity<List<SubjectResulte>>> getAllVedioBys(@Field("once") boolean once_no);