Ejemplo n.º 1
0
 public Content Translate(ITranslationHelper translation)
 {
     return(new Content()
     {
         Format = this.Format,
         Quests = this.Quests.Select(q => q.Translate(translation)).ToList(),
         Offers = this.Offers.Select(o => TranslationUtils.TranslateOffer(translation, o)).ToList(),
         Owner = this.Owner,
     });
 }
Ejemplo n.º 2
0
 public Content Translate(ITranslationHelper translation)
 {
     return(new Content()
     {
         Format = this.Format,
         Quests = this.Quests?.Select(q => q.Translate(translation)).ToList(),
         Offers = this.Offers?.Select(o => TranslationUtils.TranslateOffer(translation, o)).ToList(),
         CustomBoards = this.CustomBoards?.Select(b => TranslationUtils.Translate(translation, b)).ToList(),
         CustomDropBoxes = this.CustomDropBoxes?.Select(b => TranslationUtils.Translate(translation, b)).ToList(),
         Owner = this.Owner,
     });
 }