Move WebInterace Calls to own Interface (#338)

optimize imports

Merge branch 'master' into moveWebInteraceCalls-2-ownInterface

Merge branch 'master' into moveWebInteraceCalls-2-ownInterface

move WebInterface calls to own interface

rename WEB api for getting PullDiff

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/338
Reviewed-by: M M Arif <mmarif@swatian.com>
This commit is contained in:
6543
2020-04-02 16:00:03 +00:00
committed by M M Arif
parent 8853b33c11
commit 7fe583c816
4 changed files with 27 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ package org.mian.gitnex.clients;
import android.content.Context;
import androidx.annotation.NonNull;
import org.mian.gitnex.interfaces.ApiInterface;
import org.mian.gitnex.interfaces.WebInterface;
import org.mian.gitnex.util.AppUtil;
import java.io.File;
import java.io.IOException;
@@ -69,4 +70,8 @@ public class RetrofitClient {
return retrofit.create(ApiInterface.class);
}
public WebInterface getWebInterface() {
return retrofit.create(WebInterface.class);
}
}