1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| package com.demo.lib.common.okhttp.request;
|
| import java.util.Map;
|
| import okhttp3.Request;
| import okhttp3.RequestBody;
|
| /**
| * Created by zhy on 15/12/14.
| */
| public class GetRequest extends OkHttpRequest
| {
| public GetRequest(String url, Object tag, Map<String, String> params, Map<String, String> headers,int id)
| {
| super(url, tag, params, headers,id);
| }
|
| @Override
| protected RequestBody buildRequestBody()
| {
| return null;
| }
|
| @Override
| protected Request buildRequest(RequestBody requestBody)
| {
| return builder.get().build();
| }
|
|
| }
|
|