示例#1
0
        public bool CheckIsWork()
        {
            try
            {
                Leaf.xNet.HttpResponse mainPageContent = httpRequest.Get(BASE_URL);
                if (mainPageContent.ToString().Length > 0)
                {
                    return(true);
                }
            }
            catch (Exception) { }

            return(false);
        }
示例#2
0
        public double GetRate()
        {
            Parser parser = new Parser(current.ToString());

            return(MoneyHelper.ToDouble(parser.GetPlaceholder("btc_amount")));
        }