Example #1
0
        public async Task <User> Auth(User user)
        {
            User copyUser = user.Clone() as User;

            copyUser.Salt = await GetSalt(copyUser.Login);

            copyUser.Password = HashPassword(copyUser.Password, copyUser.Salt);
            return(await _service.GetDeserializedObject <User>($"{AppSettings.CurrentDomain}/api/account/auth", HttpMethod.Post, copyUser));
        }
Example #2
0
        public async Task <List <DashboardItem> > GetItems()
        {
            NetServices service = new NetServices();

            return(await service.GetDeserializedObject <List <DashboardItem> >($"{AppSettings.CurrentDomain}/api/dashboarditems"));
        }
Example #3
0
 public async Task <List <Company> > GetCompanies()
 {
     return(await _service.GetDeserializedObject <List <Company> >($"{AppSettings.IexTradingHost}/{AppSettings.IexTradingVersion}/ref-data/symbols", _jsonSettings));
 }