1 |
|
package com.dreamcatcher.bicycle.core; |
2 |
|
|
3 |
|
import com.dreamcatcher.bicycle.interfaces.IAdService; |
4 |
|
import com.dreamcatcher.bicycle.interfaces.IAssetsService; |
5 |
|
import com.dreamcatcher.bicycle.interfaces.IHttpService; |
6 |
|
import com.dreamcatcher.bicycle.interfaces.ISettingService; |
7 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (31) |
Complexity: 11 |
Complexity Density: 0,58 |
|
8 |
|
public class BicycleService { |
9 |
|
private static BicycleService mInstance = null; |
10 |
|
private IHttpService mHttpService = null; |
11 |
|
private HttpEventListener mHttpEvent = null; |
12 |
|
private IAssetsService mAssertsService = null; |
13 |
|
private AssetsEventListener mAssetsEventListener = null; |
14 |
|
private ISettingService mSettingService = null; |
15 |
|
private SettingEventListener mSettingEvent = null; |
16 |
|
private IAdService mAdService = null; |
17 |
|
private AdEventListener mAdEventListener = null; |
18 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 1 |
Complexity Density: 0,12 |
|
19 |
1
|
private BicycleService(){... |
20 |
1
|
mHttpService = new HttpService(); |
21 |
1
|
mHttpEvent = new HttpEventListener(); |
22 |
1
|
mAssertsService = new AssetsService(); |
23 |
1
|
mAssetsEventListener = new AssetsEventListener(); |
24 |
1
|
mSettingService = new SettingService(); |
25 |
1
|
mSettingEvent = new SettingEventListener(); |
26 |
1
|
mAdService = new AdService(); |
27 |
1
|
mAdEventListener = new AdEventListener(); |
28 |
|
} |
29 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0,67 |
|
30 |
48
|
public static BicycleService getInstance(){... |
31 |
48
|
if(mInstance == null){ |
32 |
1
|
mInstance = new BicycleService(); |
33 |
|
} |
34 |
48
|
return mInstance; |
35 |
|
} |
36 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
37 |
4
|
public IHttpService getHttpService(){... |
38 |
4
|
return mHttpService; |
39 |
|
} |
40 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
41 |
7
|
public HttpEventListener getHttpEventListener(){... |
42 |
7
|
return mHttpEvent; |
43 |
|
} |
44 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
45 |
2
|
public IAssetsService getAssertsService() {... |
46 |
2
|
return mAssertsService; |
47 |
|
} |
48 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
7
|
public AssetsEventListener getAssetsEventListener() {... |
50 |
7
|
return mAssetsEventListener; |
51 |
|
} |
52 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
4
|
public ISettingService getSettingService() {... |
54 |
4
|
return mSettingService; |
55 |
|
} |
56 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
19
|
public SettingEventListener getSettingEventListener() {... |
58 |
19
|
return mSettingEvent; |
59 |
|
} |
60 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
1
|
public IAdService getAdService(){... |
62 |
1
|
return mAdService; |
63 |
|
} |
64 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
4
|
public AdEventListener getAdEventListener(){... |
66 |
4
|
return mAdEventListener; |
67 |
|
} |
68 |
|
|
69 |
|
} |