Ejemplo n.º 1
0
            public void OnClick(View arg0)
            {
                Appmodel.AssurantDigitalHub assurantApp = new Appmodel.AssurantDigitalHub(outerInstance);
                // DigitalHubModel.Eligiblecustomeremail.Model.EligibleCustomerEmail_EligibleCustomerEmail_READ_REQUEST EligibleCustomerReadRequest = new  DigitalHubModel.Eligiblecustomeremail.Model.EligibleCustomerEmail_EligibleCustomerEmail_READ_REQUEST ();
                // //EligibleCustomerReadRequest.Authorization = "Huzzle f12d483d-8919-4d1b-9dd6-34390b5ead26.8b4ade9e5284531029680e5618cf6d79";
                // EligibleCustomerReadRequest.Company = "halifax";
                // //EligibleCustomerReadRequest.ID = "johnnycrappleseed@ex";
                // EligibleCustomerReadRequest.ID = "halifax";
                // EligibleCustomerReadRequest.EmailAddress = "*****@*****.**";
                //
                // DigitalHubModel.Eligiblecustomeremail.clsEligibleCustomerEmail Request = assurantApp.EligibleCustomerEmailResource;
                // Request.SetResponseHandler (new TJResponseHandlerCreate (outerInstance));
                // Request.SetProgressHandler (new TJProgressHandlerCreate (outerInstance));
                // DigitalHubModel.Onetimepassword.Model.OneTimePassword_OneTimePassword_CREATE_REQUEST OnePasswordValidate = new DigitalHubModel.Onetimepassword.Model.OneTimePassword_OneTimePassword_CREATE_REQUEST ();
                // OnePasswordValidate.Reference = custID;
                // //OnePasswordValidate.Authorization = token;
                // OnePasswordValidate.Company = "halifax";
                // OnePasswordValidate.ID = userid;
                //
                // DigitalHubModel.Onetimepassword.Model.OneTimePassword_OneTimePassword_CREATE_endpoint_REQUEST endPointRequest = new DigitalHubModel.Onetimepassword.Model.OneTimePassword_OneTimePassword_CREATE_endpoint_REQUEST ();
                // endPointRequest.Channel = "email";
                // endPointRequest.Destination = userid;
                // endPointRequest.TemplateCode = "forgotten_password";
                // OnePasswordValidate.Endpoint = endPointRequest;
                //
                // DigitalHubModel.Onetimepassword.clsOneTimePassword OneTimePassword = assurantApp.OneTimePasswordResource;
                // OneTimePassword.SetProgressHandler (new TJProgressHandlerCreate (this));
                // OneTimePassword.SetResponseHandler (new TJResponseHandlerCreate (this));
                // OneTimePassword.Create (OnePasswordValidate);
                //Request.Read (EligibleCustomerReadRequest);

                outerInstance.showLoginDialog();
            }
Ejemplo n.º 2
0
 private void HandleDialogPositiveButtonClick(object sender, EventArgs e)
 {
     Appmodel.AssurantDigitalHub assurantApp = new Appmodel.AssurantDigitalHub(this);
     if (userNameEdtTxt.Text != null && !userNameEdtTxt.Text.ToString().Equals("") && passwordEdtTxt.Text != null && !passwordEdtTxt.Text.ToString().Equals(""))
     {
         alert.Dismiss();
         authenticateUsernameAndPassword(userNameEdtTxt.Text.ToString(), passwordEdtTxt.Text.ToString());
     }
     else
     {
         Toast.MakeText(mContext, "All fields are mandatory", ToastLength.Long).Show();
     }
 }
Ejemplo n.º 3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);


            assurantApp = new Appmodel.AssurantDigitalHub(this);
            SetContentView(Resource.Layout.Login);

            mContext = this;

            clientSDKHelper = ClientSDKHelper.GetInstance(this);
            progressDialog  = new ProgressDialog(this);
            startSDKInitProcess();
        }
Ejemplo n.º 4
0
        private void authenticateUsernameAndPassword(string userName, string userPassword)
        {
            //bool userAuthenticated = false;
            Appmodel.AssurantDigitalHub assurantApp = new Appmodel.AssurantDigitalHub(this);
            try
            {
                //Appmodel.AssurantDigitalHub assurantApp = new Appmodel.AssurantDigitalHub(this);
                //Eligiblecustomeremail

                //clientSDKHelper.AuthenticateUser(userName, userPassword,new ProgressDialog(this),  new TJResponseHandlerAuthenticateUsers(this));
                DigitalHubModel.Integratedlogin.Model.Request.AssurantLogin_CREATE LoginCreateRequest = new DigitalHubModel.Integratedlogin.Model.Request.AssurantLogin_CREATE();
                //
                // LoginCreateRequest.Company = "halifax";
                // LoginCreateRequest.ID = "halifax";
                //
                // //localDBUserRequest.COMPANY_NAME = "dev";
                //

                LoginCreateRequest.Channel = "app";
                // //LoginCreateRequest.Password ="******";
                // //LoginCreateRequest.Username = "******";
                // //LoginCreateRequest.Password ="******";
                LoginCreateRequest.Password = "******";
                //
                //LoginCreateRequest.Password ="******";
                // LoginCreateRequest.Password ="******";
                //LoginCreateRequest.Username = "******";
                //LoginCreateRequest.Username = "******";
                //LoginCreateRequest.Username = "******";
                //LoginCreateRequest.Username = "******";
                //LoginCreateRequest.Username = "******";
                //LoginCreateRequest.Username = "******";
                //LoginCreateRequest.Username = "******";
                //LoginCreateRequest.Username = "******";
                LoginCreateRequest.Username = "******";

                //LoginCreateRequest.Username = "******";

                //
                //LoginCreateRequest.Username = "******";

                // LoginCreateRequest.Username = "******";
                //// //userID = "*****@*****.**";
                userID = LoginCreateRequest.Username;
                // clientSDKHelper.AuthenticateUser(LoginCreateRequest,"IntegratedLogin",null,new TJResponseHandlerAuthenticateUsers(this));
                //
                string             strTOken = string.Empty;
                ISharedPreferences prefs    = PreferenceManager.GetDefaultSharedPreferences(mContext);

                strTOken = prefs.GetString("Token", "");
//				if(string.IsNullOrEmpty(strTOken))
//				{
                DigitalHubModel.Integratedlogin.clsIntegratedLogin obj = new DigitalHubModel.Integratedlogin.clsIntegratedLogin();


                //
//				clientSDKHelper.AuthenticateUser(LoginCreateRequest, "IntegratedLogin" ,new ProgressDialog(this),  new TJResponseHandlerAuthenticateUsers(this) ,"*****@*****.**","ghjhkhkh!", (Java.Lang.Long)(DigitalHubModel.Integratedlogin.clsIntegratedLogin.OrchestrationId));
//
//
                clientSDKHelper.AuthenticateUser(LoginCreateRequest, "IntegratedLogin", new ProgressDialog(this), new TJResponseHandlerAuthenticateUsers(this), "*****@*****.**", "Tester12!", (Java.Lang.Long)(DigitalHubModel.Integratedlogin.clsIntegratedLogin.OrchestrationId));


//				}
//				else
//				{
//					custID = "73548765868";
//					openHomeActivity();
//				}
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                Console.Write(e.StackTrace);
            }
        }