async public void OnInstagramAuthenticationCompleted(SocialNetworkModel network) { DismissViewController(true, null); Platform.ClearBrowserCache(); //var network1 = await SL.CheckInInstagram("Instagram", network.AccessToken, Platform.Lat, Platform.Lon); var response = await SL.CheckInNetwork(network, Platform.Lat, Platform.Lon); Platform.AnimateRotationComplete(InstagramConnectedImage); UpdateView(); if (response.ResponseCode > 0) { InstagramLoginButton.SetBackgroundImage(UIImage.FromBundle("social-connect_insta-connected"), UIControlState.Normal); Platform.AnimateRotationComplete(InstagramConnectedImage); InstagramConnectedImage.Image = UIImage.FromBundle("check-icon_green"); NextButton.Enabled = true; if (SL.HasAreas) { SL.RefreshAll(); } } else { await Platform.ShowAlert(null, !string.IsNullOrEmpty(response.ResponseMessage)?response.ResponseMessage : "Login failed", "OK"); } }
async public Task OnInstagramAuthenticationCompleted(SocialNetworkModel network) { DismissViewController(true, null); Platform.ClearBrowserCache(); var response = await SL.CheckInNetwork(network, Platform.Lat, Platform.Lon); if (response.ResponseCode > 0) { if (SL.HasAreas) { SL.RefreshAll(); DidLoadChallengeData = false; LoadChallengeData(); } } else { await Platform.ShowAlert(null, !string.IsNullOrEmpty(response.ResponseMessage)?response.ResponseMessage : "Login failed", "OK"); } }
public async void OnFacebookAuthenticationCompleted(SocialNetworkModel network) { DismissViewController(true, null); Platform.ClearBrowserCache(); //Update SL server var response = await SL.CheckInNetwork(network, Platform.Lat, Platform.Lon); Platform.AnimateRotationComplete(FacebookConnectedImage); UpdateView(); if (response.ResponseCode > 0) { if (SL.HasAreas) { SL.RefreshAll(); } } else { await Platform.ShowAlert(null, !string.IsNullOrEmpty(response.ResponseMessage)?response.ResponseMessage : "Login failed", "OK"); } }