Exemple #1
0
        public List <string> getUpdateList()
        {
            List <string> retVal = new List <string>();

            JArray retData = apiData.getCoinList();

            if (retData == null)
            {
                return(retVal);
            }

            for (int i = 0; i < retData.Count; i++)
            {
                string[] temp = retData[i]["market"].ToString().Split('-');
                if (temp.Length > 1)
                {
                    if (temp[0] == "KRW" && !retVal.Contains(temp[1]))
                    {
                        retVal.Add(temp[1]);
                    }
                }
            }

            return(retVal);
        }
Exemple #2
0
        public List <string> setCoinList()
        {
            JArray jArray = apiData.getCoinList();

            if (jArray == null)
            {
                return(null);
            }

            ticker.Clear();
            for (int i = 0; i < jArray.Count; i++)
            {
                string[] coinName = jArray[i]["market"].ToString().Split('-');
                if (coinName.Length > 1)
                {
                    if (coinName[0] == "KRW" && !coinList.Contains(coinName[1]))
                    {
                        coinList.Add(coinName[1]);
                        ticker.Add(coinName[1], new Ticker());
                    }
                }
            }

            return(coinList);
        }