using System; using System.Collections.Generic; using System.Text; namespace PhilExampleCrawler.Common.Models { public class UserSession { public int ID { get; set; } public User User { get; set; } public List RegisteredCrawlSessions { get; } public DateTime ValidUntil { get; set; } public UserSession(int id, User user) { ID = id; User = user; RegisteredCrawlSessions = new List(); } public UserSession(int id, User user, List registeredCrawlSessions) { ID = id; User = user; RegisteredCrawlSessions = registeredCrawlSessions; } public UserSession(int id, User user, List registeredCrawlSessions, DateTime validUntil) { ID = id; User = user; RegisteredCrawlSessions = registeredCrawlSessions; ValidUntil = validUntil; } } }