static Authorization() { var setting = new SettingUtils().GetCommonSetting(); ConsumerKey = setting.ConsumerKey; ConsumerSecret = setting.ConsumerSecret; }
public static bool Authed() { var account = new SettingUtils().getUserSetting().UserAccounts; if (account == null || account.Length == 0) { return(false); } var defaultAccount = account.Where(a => a.DefaultAccount) .FirstOrDefault(a => a.Token != null && a.TokenSecret != null); return(defaultAccount != null); }