public static Profile GetForm(customer_account user) { if (user == null) return null; Profile profile = new Profile { uid = user.id, account = user.username, email = user.email, nickname = user.nickname, gender = user.gender, vip = user.vip, avatar = user.GetValidAvatarUrl(), country_code = user.country_code, bio = user.bio ?? string.Empty, gtoken = user.play_token, free_gtoken = user.free_play_token, goplay_token = user.play_token, free_goplay_token = user.free_play_token }; profile = Helper.FullFillEmptyFields<Profile>(profile); return profile; }
public ProfileResult() { Profile = new Profile(); }
public RegisterOrLoginResult() { Profile = new Profile(); }
public LoginOAuthResult() { Profile = new Profile(); }