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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user