public void GetFirstRunData()
        {
            string ddd;
            var    users = _storeService.FindAll <User>();

            if (users.Any())
            {
                var user     = users.ToList()[0];
                var telefone = user.DddPhoneNumber;
                ddd = telefone.Substring(0, 2);
            }
            else
            {
                ddd = "00";
            }
            FirstRunWr news   = new FirstRunWr();
            var        result = news.GetJsonFirstRunData(ddd);

            if (result != null)
            {
                Welcome_title = result.Welcome_title;
                Welcome_body  = result.Welcome_body;
                Welcome_end   = result.Welcome_end;
                Welcome_bold  = result.Welcome_bold;
            }
        }
示例#2
0
        public void TesteGetFirstRunJson()
        {
            FirstRunWr news   = new FirstRunWr();
            var        result = news.GetJsonFirstRunData("41");

            Assert.NotNull(result);
        }
        public RegisterInfoPageViewModel(INavigationService navigationService) : base(navigationService)
        {
            FirstRunWr news   = new FirstRunWr();
            var        result = news.GetJsonFirstRunData("00");

            _navigationService = navigationService;

            NavigationPop = new Command(async() => await NavigationPopCommand());
            Why_title     = result.Why_title;
            Why_Body      = result.Why_Body;
            Why_middle    = result.Why_middle;
            Why_end       = result.Why_end;
        }