// Path: app/src/main/java/work/technie/popularmovies/data/MovieContract.java
// public static final class People implements BaseColumns {
// 
//     public static final String TABLE_NAME = "people";
// 
//     public static final String ADULT = "adult";
//     public static final String BIOGRAPHY = "biography";
//     public static final String BIRTHDAY = "birthday";
//     public static final String DEATHDAY = "deathday";
//     public static final String GENDER = "gender";
//     public static final String HOMEPAGE = "homepage";
//     public static final String ID = "id";
//     public static final String NAME = "name";
//     public static final String PLACE_OF_BIRTH = "place_of_birth";
//     public static final String POPULARITY = "popularity";
//     public static final String PROFILE_PATH = "profile_path";
// 
//     public static final Uri CONTENT_URI =
//             BASE_CONTENT_URI.buildUpon().appendPath(PATH_PEOPLE).build();
// 
//     static final String CONTENT_TYPE =
//             ContentResolver.CURSOR_DIR_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_PEOPLE;
//     static final String CONTENT_ITEM_TYPE =
//             ContentResolver.CURSOR_ITEM_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_PEOPLE;
// 
//     static Uri buildPeopleUri(long id) {
//         return ContentUris.withAppendedId(CONTENT_URI, id);
//     }
// 
//     //content://work....../people/peopleId
//     public static Uri buildPeopleUriWithPeopleId(String peopleId) {
//         return CONTENT_URI.buildUpon().appendPath(peopleId).build();
//     }
// 
//     public static Uri buildPersonUri() {
//         return CONTENT_URI.buildUpon().build();
//     }
// 
//     public static String getIDFromUri(Uri uri) {
//         return uri.getPathSegments().get(1);
//     }
// 
// }
// 
// Path: app/src/main/java/work/technie/popularmovies/utils/AsyncResponse.java
// public interface AsyncResponse {
//     void onFinish(boolean isData);
// }


import work.technie.popularmovies.data.MovieContract.People;
import work.technie.popularmovies.utils.AsyncResponse;
import android.content.ContentValues;
import android.content.Context;
import android.net.Uri;
import android.os.AsyncTask;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import work.technie.popularmovies.BuildConfig;
package work.technie.popularmovies.asyntask;
/*
 * Copyright (C) 2017 Anupam Das
 *
 * 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.
 */




/**
 * Created by anupam on 16/12/16.
 */

public class FetchPeopleDetail extends AsyncTask<String, Void, Void> {

    private final String LOG_TAG = FetchTVMovieTask.class.getSimpleName();

    private final Context mContext;
// Path: app/src/main/java/work/technie/popularmovies/data/MovieContract.java
// public static final class People implements BaseColumns {
// 
//     public static final String TABLE_NAME = "people";
// 
//     public static final String ADULT = "adult";
//     public static final String BIOGRAPHY = "biography";
//     public static final String BIRTHDAY = "birthday";
//     public static final String DEATHDAY = "deathday";
//     public static final String GENDER = "gender";
//     public static final String HOMEPAGE = "homepage";
//     public static final String ID = "id";
//     public static final String NAME = "name";
//     public static final String PLACE_OF_BIRTH = "place_of_birth";
//     public static final String POPULARITY = "popularity";
//     public static final String PROFILE_PATH = "profile_path";
// 
//     public static final Uri CONTENT_URI =
//             BASE_CONTENT_URI.buildUpon().appendPath(PATH_PEOPLE).build();
// 
//     static final String CONTENT_TYPE =
//             ContentResolver.CURSOR_DIR_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_PEOPLE;
//     static final String CONTENT_ITEM_TYPE =
//             ContentResolver.CURSOR_ITEM_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_PEOPLE;
// 
//     static Uri buildPeopleUri(long id) {
//         return ContentUris.withAppendedId(CONTENT_URI, id);
//     }
// 
//     //content://work....../people/peopleId
//     public static Uri buildPeopleUriWithPeopleId(String peopleId) {
//         return CONTENT_URI.buildUpon().appendPath(peopleId).build();
//     }
// 
//     public static Uri buildPersonUri() {
//         return CONTENT_URI.buildUpon().build();
//     }
// 
//     public static String getIDFromUri(Uri uri) {
//         return uri.getPathSegments().get(1);
//     }
// 
// }
// 
// Path: app/src/main/java/work/technie/popularmovies/utils/AsyncResponse.java
// public interface AsyncResponse {
//     void onFinish(boolean isData);
// }


// Path: app/src/main/java/work/technie/popularmovies/asyntask/FetchPeopleDetail.java
import work.technie.popularmovies.data.MovieContract.People;
import work.technie.popularmovies.utils.AsyncResponse;
import android.content.ContentValues;
import android.content.Context;
import android.net.Uri;
import android.os.AsyncTask;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import work.technie.popularmovies.BuildConfig;

package work.technie.popularmovies.asyntask;
/*
 * Copyright (C) 2017 Anupam Das
 *
 * 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.
 */




/**
 * Created by anupam on 16/12/16.
 */

public class FetchPeopleDetail extends AsyncTask<String, Void, Void> {

    private final String LOG_TAG = FetchTVMovieTask.class.getSimpleName();

    private final Context mContext;
    public AsyncResponse response = null;