// Path: androidsample/src/main/java/io/appflate/restmock/androidsample/SampleApplication.java
// public class SampleApplication extends Application {
//     private static final String BASE_URL = "https://api.github.com/";
//     static AppComponent appComponent;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         setupGraph();
//     }
// 
//     protected void setupGraph() {
//         appComponent = DaggerAppComponent.builder()
//                 .appModule(new AppModule(BASE_URL, null, null))
//                 .build();
//     }
// 
//     public static AppComponent getComponent() {
//         return appComponent;
//     }
// }
// 
// Path: androidsample/src/main/java/io/appflate/restmock/androidsample/domain/GithubApi.java
// public interface GithubApi {
// 
//     @GET("users/{username}")
//     Call<User> getUserProfile(@Path("username") String username);
// 
//     @GET("users/{username}/repos")
//     Call<List<Repository>>  getUserRepos(@Path("username") String username);
// 
// }
// 
// Path: androidsample/src/main/java/io/appflate/restmock/androidsample/model/User.java
// public class User {
//     @SerializedName("login") public String login;
//     @SerializedName("id") public int id;
//     @SerializedName("avatar_url") public String avatarUrl;
//     @SerializedName("gravatar_id") public String gravatarId;
//     @SerializedName("url") public String url;
//     @SerializedName("html_url") public String htmlUrl;
//     @SerializedName("followers_url") public String followersUrl;
//     @SerializedName("following_url") public String followingUrl;
//     @SerializedName("gists_url") public String gistsUrl;
//     @SerializedName("starred_url") public String starredUrl;
//     @SerializedName("subscriptions_url") public String subscriptionsUrl;
//     @SerializedName("organizations_url") public String organizationsUrl;
//     @SerializedName("repos_url") public String reposUrl;
//     @SerializedName("events_url") public String eventsUrl;
//     @SerializedName("received_events_url") public String receivedEventsUrl;
//     @SerializedName("type") public String type;
//     @SerializedName("site_admin") public boolean siteAdmin;
//     @SerializedName("name") public String name;
//     @SerializedName("company") public String company;
//     @SerializedName("blog") public String blog;
//     @SerializedName("location") public String location;
//     @SerializedName("email") public String email;
//     @SerializedName("hireable") public boolean hireable;
//     @SerializedName("bio") public String bio;
//     @SerializedName("public_repos") public int publicRepos;
//     @SerializedName("public_gists") public int publicGists;
//     @SerializedName("followers") public int followers;
//     @SerializedName("following") public int following;
//     @SerializedName("created_at") public String createdAt;
//     @SerializedName("updated_at") public String updatedAt;
// }
// 
// Path: androidsample/src/main/java/io/appflate/restmock/androidsample/utils/Utils.java
// public class Utils {
//     public static void hideKeyboard(Activity activity) {
//         InputMethodManager inputManager =
//                 (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);
//         inputManager.hideSoftInputFromWindow(
//                 activity.findViewById(android.R.id.content).getWindowToken(),
//                 InputMethodManager.HIDE_NOT_ALWAYS);
//     }
// }


import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.ViewAnimator;
import java.util.Locale;
import javax.inject.Inject;
import androidx.appcompat.app.AppCompatActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import io.appflate.restmock.androidsample.R;
import io.appflate.restmock.androidsample.SampleApplication;
import io.appflate.restmock.androidsample.domain.GithubApi;
import io.appflate.restmock.androidsample.model.User;
import io.appflate.restmock.androidsample.utils.Utils;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
/*
 * Copyright (C) 2016 Appflate.io
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.appflate.restmock.androidsample.view.activities;





public class MainActivity extends AppCompatActivity {

    private static final int POSITION_CONTENT_VIEW = 0;
    private static final int POSITION_PROGRESS_VIEW = 1;
// Path: androidsample/src/main/java/io/appflate/restmock/androidsample/SampleApplication.java
// public class SampleApplication extends Application {
//     private static final String BASE_URL = "https://api.github.com/";
//     static AppComponent appComponent;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         setupGraph();
//     }
// 
//     protected void setupGraph() {
//         appComponent = DaggerAppComponent.builder()
//                 .appModule(new AppModule(BASE_URL, null, null))
//                 .build();
//     }
// 
//     public static AppComponent getComponent() {
//         return appComponent;
//     }
// }
// 
// Path: androidsample/src/main/java/io/appflate/restmock/androidsample/domain/GithubApi.java
// public interface GithubApi {
// 
//     @GET("users/{username}")
//     Call<User> getUserProfile(@Path("username") String username);
// 
//     @GET("users/{username}/repos")
//     Call<List<Repository>>  getUserRepos(@Path("username") String username);
// 
// }
// 
// Path: androidsample/src/main/java/io/appflate/restmock/androidsample/model/User.java
// public class User {
//     @SerializedName("login") public String login;
//     @SerializedName("id") public int id;
//     @SerializedName("avatar_url") public String avatarUrl;
//     @SerializedName("gravatar_id") public String gravatarId;
//     @SerializedName("url") public String url;
//     @SerializedName("html_url") public String htmlUrl;
//     @SerializedName("followers_url") public String followersUrl;
//     @SerializedName("following_url") public String followingUrl;
//     @SerializedName("gists_url") public String gistsUrl;
//     @SerializedName("starred_url") public String starredUrl;
//     @SerializedName("subscriptions_url") public String subscriptionsUrl;
//     @SerializedName("organizations_url") public String organizationsUrl;
//     @SerializedName("repos_url") public String reposUrl;
//     @SerializedName("events_url") public String eventsUrl;
//     @SerializedName("received_events_url") public String receivedEventsUrl;
//     @SerializedName("type") public String type;
//     @SerializedName("site_admin") public boolean siteAdmin;
//     @SerializedName("name") public String name;
//     @SerializedName("company") public String company;
//     @SerializedName("blog") public String blog;
//     @SerializedName("location") public String location;
//     @SerializedName("email") public String email;
//     @SerializedName("hireable") public boolean hireable;
//     @SerializedName("bio") public String bio;
//     @SerializedName("public_repos") public int publicRepos;
//     @SerializedName("public_gists") public int publicGists;
//     @SerializedName("followers") public int followers;
//     @SerializedName("following") public int following;
//     @SerializedName("created_at") public String createdAt;
//     @SerializedName("updated_at") public String updatedAt;
// }
// 
// Path: androidsample/src/main/java/io/appflate/restmock/androidsample/utils/Utils.java
// public class Utils {
//     public static void hideKeyboard(Activity activity) {
//         InputMethodManager inputManager =
//                 (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);
//         inputManager.hideSoftInputFromWindow(
//                 activity.findViewById(android.R.id.content).getWindowToken(),
//                 InputMethodManager.HIDE_NOT_ALWAYS);
//     }
// }


// Path: androidsample/src/main/java/io/appflate/restmock/androidsample/view/activities/MainActivity.java
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.ViewAnimator;
import java.util.Locale;
import javax.inject.Inject;
import androidx.appcompat.app.AppCompatActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import io.appflate.restmock.androidsample.R;
import io.appflate.restmock.androidsample.SampleApplication;
import io.appflate.restmock.androidsample.domain.GithubApi;
import io.appflate.restmock.androidsample.model.User;
import io.appflate.restmock.androidsample.utils.Utils;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;

/*
 * Copyright (C) 2016 Appflate.io
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.appflate.restmock.androidsample.view.activities;





public class MainActivity extends AppCompatActivity {

    private static final int POSITION_CONTENT_VIEW = 0;
    private static final int POSITION_PROGRESS_VIEW = 1;
    @Inject GithubApi githubApi;