Created login and error handling to get auth token. Refreshing not handled.
This commit is contained in:
@@ -2,25 +2,47 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Security;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BodyshopUploader.ViewModels
|
||||
{
|
||||
public partial class LoginViewModel: BaseViewModel
|
||||
public partial class LoginViewModel : BaseViewModel
|
||||
{
|
||||
private ObservableCollection<string> _invoiceList;
|
||||
public ObservableCollection<string> InvoiceList
|
||||
private string _userName = Properties.Settings.Default.Username;
|
||||
public string UserName
|
||||
{
|
||||
get { return _invoiceList; }
|
||||
set { SetProperty(ref _invoiceList, value); }
|
||||
get { return _userName; }
|
||||
set { SetProperty(ref _userName, value); }
|
||||
}
|
||||
|
||||
private int _progress = 5;
|
||||
public int Progress
|
||||
private SecureString _userPassword = Properties.Settings.Default.Password;
|
||||
public SecureString UserPassword
|
||||
{
|
||||
get { return _progress; }
|
||||
set { SetProperty(ref _progress, value); }
|
||||
get { return _userPassword; }
|
||||
set { SetProperty(ref _userPassword, value); }
|
||||
}
|
||||
|
||||
private bool _error = false;
|
||||
public bool Error
|
||||
{
|
||||
get { return _error; }
|
||||
set { SetProperty(ref _error, value); }
|
||||
}
|
||||
|
||||
private string _errorMsg;
|
||||
public string ErrorMsg
|
||||
{
|
||||
get { return _errorMsg; }
|
||||
set { SetProperty(ref _errorMsg, value); }
|
||||
}
|
||||
|
||||
private bool _loading = false;
|
||||
public bool Loading
|
||||
{
|
||||
get { return _loading; }
|
||||
set { SetProperty(ref _loading, value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user