// Path: app/src/main/java/com/silver/dan/castdemo/StockInfo.java
// public class StockInfo implements Serializable {
//     private String ticker;
//     private String name;
// 
//     public StockInfo(String ticker, String name) {
//         this.ticker = ticker;
//         this.name = name;
//     }
// 
//     public String getTicker() {
//         return ticker;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     @Override
//     public String toString() {
//         return name;
//     }
// 
// }


import android.content.Context;
import android.os.AsyncTask;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.TextView;
import com.silver.dan.castdemo.R;
import com.silver.dan.castdemo.StockInfo;
import org.json.JSONArray;
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 java.util.ArrayList;
import java.util.List;
package com.silver.dan.castdemo.settingsFragments;





/**
 * Created by dan on 1/16/17.
 */
public class GetStockSuggestionsAdapter extends BaseAdapter implements Filterable {
    private Context mContext;
// Path: app/src/main/java/com/silver/dan/castdemo/StockInfo.java
// public class StockInfo implements Serializable {
//     private String ticker;
//     private String name;
// 
//     public StockInfo(String ticker, String name) {
//         this.ticker = ticker;
//         this.name = name;
//     }
// 
//     public String getTicker() {
//         return ticker;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     @Override
//     public String toString() {
//         return name;
//     }
// 
// }


// Path: app/src/main/java/com/silver/dan/castdemo/settingsFragments/GetStockSuggestionsAdapter.java
import android.content.Context;
import android.os.AsyncTask;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.TextView;
import com.silver.dan.castdemo.R;
import com.silver.dan.castdemo.StockInfo;
import org.json.JSONArray;
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 java.util.ArrayList;
import java.util.List;

package com.silver.dan.castdemo.settingsFragments;





/**
 * Created by dan on 1/16/17.
 */
public class GetStockSuggestionsAdapter extends BaseAdapter implements Filterable {
    private Context mContext;
    private List<StockInfo> resultList = new ArrayList<>();