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);
    }
示例#2
0
    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);
    }
示例#3
0
 public abstract void Create(DCreateAccountPayload payload);