Created
May 12, 2018 18:45
-
-
Save shanmugasanthosh7/f267c00a6453f3e4744be9fa9b0a8c51 to your computer and use it in GitHub Desktop.
RestService Class implementaion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class NetworkService | |
{ | |
public static IApiService apiService; | |
string static baseUrl = "https://jsonplaceholder.typicode.com" | |
public static IApiService GetApiService() | |
{ | |
apiService = RestService.For<IApiService>(baseUrl); | |
return apiService; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment