public QuestData Translate(ITranslationHelper translation) { var toTranslate = JObject.FromObject(this); return(TranslationUtils.Translate(translation, toTranslate) .ToObject <QuestData>()); }
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, }); }
public QuestData Translate(ITranslationHelper translation) { return(TranslationUtils.Translate(translation, this)); }