Example #1
0
        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;
        }
Example #2
0
        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);
        }
Example #3
0
 public WebService(IKeyChain keyChain)
 {
     this.keyChain = keyChain;
 }
Example #4
0
        public void SaveToKeyChain(IKeyChain keychain)
        {
            string str = Newtonsoft.Json.JsonConvert.SerializeObject(this);

            keychain.Add("FVOConfig", str);
        }
 public TempSavedMatchHelper(IKeyChain keyChain)
 {
     this.keyChain = keyChain;
 }