File tree Expand file tree Collapse file tree
StudyplusAndroidSDK/src/main/java/jp/studyplus/android/sdk/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66public interface ApiCertification {
77
88 public String getAccessToken ();
9-
10- public String getBaseUrl ();
119}
Original file line number Diff line number Diff line change 44
55import java .io .IOException ;
66
7+ import jp .studyplus .android .sdk .BuildConfig ;
78import jp .studyplus .android .sdk .internal .api .ApiAccess ;
89import jp .studyplus .android .sdk .internal .api .ApiResponse ;
910
@@ -15,7 +16,7 @@ class ApiRequester {
1516 public ApiRequester (ApiRequest request , ApiCertification certification ) {
1617 this .request = request ;
1718 this .access = new ApiAccess (
18- certification . getBaseUrl () + request .getScriptPath (),
19+ BuildConfig . API_ENDPOINT + request .getScriptPath (),
1920 certification .getAccessToken ());
2021 }
2122 public ApiEither request () throws IOException {
Original file line number Diff line number Diff line change @@ -60,21 +60,14 @@ public ApiCertification getDefault() {
6060
6161 private static class ApiCertificationImpl implements ApiCertification {
6262 private final String accessToken ;
63- private final String baseUrl ;
6463
6564 private ApiCertificationImpl (String accessToken ) {
6665 this .accessToken = accessToken ;
67- this .baseUrl = BuildConfig .API_ENDPOINT ;
6866 }
6967
7068 @ Override
7169 public String getAccessToken () {
7270 return accessToken ;
7371 }
74-
75- @ Override
76- public String getBaseUrl () {
77- return baseUrl ;
78- }
7972 }
8073}
You can’t perform that action at this time.
0 commit comments