private void createAccount() { DCreateAccountPayload payload = default(DCreateAccountPayload); payload.Username = usernameInputField.TextInput.text; payload.Password = passwordInputField.TextInput.text; payload.FirstName = (string.IsNullOrEmpty(firstNameInputField.TextInput.text) ? null : firstNameInputField.TextInput.text); payload.ParentEmail = parentEmailInputField.TextInput.text; payload.AcceptedLegalDocs = Service.Get <MixLoginCreateService>().RegistrationAgeBand.LegalDocuments; payload.LangPref = Service.Get <Localizer>().LanguageStringOneID; createController.Create(payload); }
public override void Create(DCreateAccountPayload payload) { Dictionary <IMarketingItem, bool> marketing = new Dictionary <IMarketingItem, bool>(); loginService.CreateChildAccount(payload.FirstName, payload.Username, payload.ParentEmail, payload.Password, payload.LangPref, marketing, payload.AcceptedLegalDocs); }
public abstract void Create(DCreateAccountPayload payload);