/// <summary> /// Sets the data. /// </summary> public void SetData(LogicClientAvatar avatar) { this._avatarId = avatar.GetId(); this._homeId = avatar.GetCurrentHomeId(); this._avatarName = avatar.GetName(); this._facebookId = avatar.GetFacebookId(); this._expLevel = avatar.GetExpLevel(); this._leagueType = avatar.GetLeagueType(); this._nameChangeState = avatar.GetNameChangeState(); this._nameSetByUser = avatar.GetNameSetByUser(); if (avatar.IsInAlliance()) { this._allianceId = avatar.GetAllianceId(); this._allianceName = avatar.GetAllianceName(); this._allianceExpLevel = avatar.GetAllianceExpLevel(); this._allianceRole = avatar.GetAllianceRole(); this._badgeId = avatar.GetAllianceBadge(); } }