// Token: 0x06003B3E RID: 15166 RVA: 0x0010EFB0 File Offset: 0x0010D1B0 public static ProBusinessCard ToProtocol(BusinessCard businessCard) { ProBusinessCard proBusinessCard = new ProBusinessCard(); proBusinessCard.UserId = businessCard.UserId; proBusinessCard.HeadIcon = businessCard.HeadIcon; proBusinessCard.Name = businessCard.Name; proBusinessCard.Level = businessCard.Level; proBusinessCard.ArenaPoints = businessCard.ArenaPoints; proBusinessCard.Likes = businessCard.Likes; proBusinessCard.IsOnLine = businessCard.IsOnLine; proBusinessCard.SetInfo = BusinessCardInfoSet.ToProtocol(businessCard.SetInfo); proBusinessCard.StatisticalData = BusinessCardStatisticalData.ToProtocol(businessCard.StatisticalData); foreach (BattleHero battleHero in businessCard.Heroes) { proBusinessCard.Heroes.Add(BattleHero.BattleHeroToPBBattleHero(battleHero)); } foreach (BattleHero battleHero2 in businessCard.MostSkilledHeroes) { proBusinessCard.MostSkilledHeroes.Add(BattleHero.BattleHeroToPBBattleHero(battleHero2)); } foreach (TrainingTech trainingTech in businessCard.Techs) { proBusinessCard.Techs.Add(trainingTech.ToPro()); } return(proBusinessCard); }
// Token: 0x06003B3F RID: 15167 RVA: 0x0010F144 File Offset: 0x0010D344 public static BusinessCard FromProtocol(ProBusinessCard pbBusinessCard) { BusinessCard businessCard = new BusinessCard(); businessCard.UserId = pbBusinessCard.UserId; businessCard.HeadIcon = pbBusinessCard.HeadIcon; businessCard.Name = pbBusinessCard.Name; businessCard.Level = pbBusinessCard.Level; businessCard.ArenaPoints = pbBusinessCard.ArenaPoints; businessCard.Likes = pbBusinessCard.Likes; businessCard.IsOnLine = pbBusinessCard.IsOnLine; businessCard.SetInfo = BusinessCardInfoSet.FromProtocol(pbBusinessCard.SetInfo); businessCard.StatisticalData = BusinessCardStatisticalData.FromProtocol(pbBusinessCard.StatisticalData); foreach (ProBattleHero pbBattleHero in pbBusinessCard.Heroes) { businessCard.Heroes.Add(BattleHero.PBBattleHeroToBattleHero(pbBattleHero)); } foreach (ProBattleHero pbBattleHero2 in pbBusinessCard.MostSkilledHeroes) { businessCard.MostSkilledHeroes.Add(BattleHero.PBBattleHeroToBattleHero(pbBattleHero2)); } foreach (ProTrainingTech tech in pbBusinessCard.Techs) { businessCard.Techs.Add(TrainingTech.FromDataSection(tech)); } return(businessCard); }