public LoginAndRegistrationLogic(FacebookService facebookService, Repository repository, WebService webservice, IKeyChain keyChain) { this.facebookService = facebookService; if (this.facebookService != null) { this.facebookService.LoginFailed += (s, e) => { Device.BeginInvokeOnMainThread(facebookService_LoginFailed); }; this.facebookService.LoginSuccessful += (s, e) => { Device.BeginInvokeOnMainThread(facebookService_LoginSuccessful); }; } this.repository = repository; this.webservice = webservice; this.keyChain = keyChain; this.webservice.AccessTokenExpired += webservice_AccessTokenExpired; }
public static FVOConfig LoadFromKeyChain(IKeyChain keychain) { FVOConfig config = null; try { string str = keychain.Get("FVOConfig"); config = Newtonsoft.Json.JsonConvert.DeserializeObject <FVOConfig>(str); } catch (Exception) { } if (config == null) { config = new FVOConfig(); } return(config); }
public WebService(IKeyChain keyChain) { this.keyChain = keyChain; }
public void SaveToKeyChain(IKeyChain keychain) { string str = Newtonsoft.Json.JsonConvert.SerializeObject(this); keychain.Add("FVOConfig", str); }
public TempSavedMatchHelper(IKeyChain keyChain) { this.keyChain = keyChain; }