Esempio n. 1
0
 private void Localize()
 {
     Title = Strings.LOGIN;
     TextFieldUsername.Placeholder = Strings.USERNAME;
     TextFieldPassword.Placeholder = Strings.PASSWORD;
     ButtonLogin.SetTitle(Strings.LOGIN, UIControlState.Normal);
     ButtonNewUser.SetTitle(Strings.NEW_USER, UIControlState.Normal);
 }
Esempio n. 2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Perform any additional setup after loading the view, typically from a nib.
            Button.AccessibilityIdentifier = "myButton";
            Button.TouchUpInside          += delegate
            {
                var title = string.Format("{0} clicks!", count++);
                Button.SetTitle(title, UIControlState.Normal);


                IApiProviderService apiProviderService = AppDelegate.Resolve <IApiProviderService>();

                Task.Run(async() =>
                {
                    ParametersRequest request = new ParametersRequest();
                    request.data = new List <ParametersData>();
                    request.data.Add(new ParametersData
                    {
                        type       = "RemoteConfigInformation",
                        id         = "111",
                        attributes = new ParametersAttributes
                        {
                            appID = "co.com.bancolombia.canalesmoviles.apppyme",
                        }
                    });

                    RequestService requestService = new RequestService();
                    requestService.EndPoint       = "/adapters/RemoteConfiAdapter_V2/remote-config/remote-config-list";
                    requestService.Request        = request;
                    requestService.Scope          = "noAuthenticityScope";

                    var abc = await apiProviderService.Provider(ProviderType.MobileFirst, AppDelegate.Resolve <IMobileFirstClients>()).Post(requestService);
                });
            };

            ButtonLogin.AccessibilityIdentifier = "myButtonLogin";
            ButtonLogin.TouchUpInside          += delegate
            {
                var title = string.Format("{0} Login!", count++);
                ButtonLogin.SetTitle(title, UIControlState.Normal);

                IApiProviderService apiProviderService = AppDelegate.Resolve <IApiProviderService>();

                Task.Run(async() =>
                {
                    ProviderResult response = await apiProviderService.Provider(ProviderType.MobileFirst, AppDelegate.Resolve <IMobileFirstClients>())
                                              .Login(this, "UserAuthenticationSecurityCheck_V2", new Newtonsoft.Json.Linq.JObject());
                });
            };
        }