public JsonQuestUsers(QuestGame quest) : base(quest) { Users = quest.users.Where(x => !x.isCreator).Select(x => new JsonUser(x)).ToList(); Places = quest.Tasks.Select(x => new Place() { Id = x.Id, Address = x.Answer, Position = x.Position }).ToList(); }
public UserGame setQuest(QuestGame quest) { this.Quest = quest; isCreator = quest.Quest.Creater == Id; return(this); }
public JsonQuest(QuestGame quest) { Id = quest.Id; Name = quest.Quest.Name; }