private bool CheckAccountDetails()
{
if (!AppSettings.TraktOAuth)
{
if (string.IsNullOrEmpty(AppSettings.TraktUsername) || string.IsNullOrEmpty(AppSettings.TraktPassword))
{
UIUtils.UpdateStatus("You must enter in your trakt username and password!", true);
return false;
}
}
else if (string.IsNullOrEmpty(AppSettings.TraktOAuthToken))
{
if (string.IsNullOrEmpty(pinCode) || pinCode.Length != 8)
{
UIUtils.UpdateStatus("You must authorise TraktRater to access your trakt.tv account and enter the 8 character pin code with-in 15 minutes of starting an import", true);
return false;
}
}
return true;
}