Пример #1
0
 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();
 }
Пример #2
0
 public UserGame setQuest(QuestGame quest)
 {
     this.Quest = quest;
     isCreator  = quest.Quest.Creater == Id;
     return(this);
 }
Пример #3
0
 public JsonQuest(QuestGame quest)
 {
     Id   = quest.Id;
     Name = quest.Quest.Name;
 }