Skip to main content

Account Personal Information (GUAAccountProfile) [Player Network SDK only]

Data Structure

note

Account callback information GUAAccountResult The member variable Profile contains account personal information.

GUAAccountProfile: Account personal information.

ParametersTypeDescription
UserNamestringUsername must start with a letter, containing only lowercase letters (a to z), underscores (_) and digits (0 to 9).Its length can be 6 to 16 characters.
BirthdaystringUser’s Date of Birth. If an invalid date is provided, the birth year defaults to 1970-01-01
BirthdayYearint32The year of the user's birthday; if entered illegally, the default birthday year is 1970
Birthday Monthint32The month of the user's birthday; if entered illegally, the default birthday month is 1
BirthdayDayint32The day of the user's birthday; if entered illegally, the default birthday day is 1
IsReceiveEmailintWhether to receive marketing emails, default is 0
RegionstringISO 3166-1 Numeric code for country or region
For example, 156 represents China, 040 represents Austria
LangTypestringLanguage Type (RFC 4646), e.g. "en", see Language Type Definition for details.
ExtraJsonstringAdditional parameters (JSON format)
EmailstringEmail address
PhonestringPhone number
PhoneAreaCodestringPhone area code
AccountTypestringAccount type
NickNamestringNickname
UsernamePassVerifystringVerification Code

Code Example

Account callback information [GUAAccountResult](/docs/resources/api/UnionAdapter/AccountServ(/docs/resources/api/ountResult) The member variable Profile contains account personal information.

public static GUAAccountResult ConvertToGUA(INTLAccountResult ret)
{
if (ret == null) return null;
GUAAccountResult accountResult = new GUAAccountResult();
accountResult.ChannelID = ret.ChannelID;
accountResult.Channel = ret.Token;
accountResult.SeqID = ret.SeqID;
accountResult.Username = ret.Username;
accountResult.Uid = ret.Uid;
accountResult.Token = ret.Token;
accountResult.Expiretime = ret.Expiretime;
accountResult.IsRegister = ret.IsRegister;
accountResult.IsSetPassword = ret.IsSetPassword;
accountResult.IsReceiveEmail = ret.IsReceiveEmail;
accountResult.VerifyCodeExpireTime = (int)ret.VerifyCodeExpireTime;
accountResult.CanBind = ret.CanBind;
accountResult.IsUserNameAvailable = ret.IsUserNameAvailable;
accountResult.Profile = ConvertToGUA(ret.Profile);
ConvertToGUA(ret, accountResult);
return accountResult;
}