private void updateAccount()
        {
            DUpdateProfilePayload payload = default(DUpdateProfilePayload);

            if (isFirstNameFieldDisplayed)
            {
                payload.FirstName = FirstNameInputField.TextInput.text;
            }
            else
            {
                payload.FirstName = null;
            }
            if (isParentEmailFieldDisplayed)
            {
                payload.ParentEmail = ParentEmailInputField.TextInput.text;
            }
            else
            {
                payload.ParentEmail = null;
            }
            if (isLegalTextDisplayed)
            {
                payload.AcceptedLegalDocs = Service.Get <MixLoginCreateService>().UpdateAgeBand.LegalDocuments;
            }
            else
            {
                payload.AcceptedLegalDocs = null;
            }
            createController.UpdateProfile(payload);
        }
 public override void UpdateProfile(DUpdateProfilePayload payload)
 {
     loginService.UpdateProfile(payload.FirstName, payload.ParentEmail, payload.AcceptedLegalDocs, Service.Get <SessionManager>().LocalUser);
 }
Beispiel #3
0
 public abstract void UpdateProfile(DUpdateProfilePayload payload);