You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
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<CrawlSession> RegisteredCrawlSessions { get; }
|
|
public DateTime ValidUntil { get; set; }
|
|
|
|
public UserSession(int id, User user)
|
|
{
|
|
ID = id;
|
|
User = user;
|
|
RegisteredCrawlSessions = new List<CrawlSession>();
|
|
}
|
|
|
|
public UserSession(int id, User user, List<CrawlSession> registeredCrawlSessions)
|
|
{
|
|
ID = id;
|
|
User = user;
|
|
RegisteredCrawlSessions = registeredCrawlSessions;
|
|
}
|
|
|
|
public UserSession(int id, User user, List<CrawlSession> registeredCrawlSessions, DateTime validUntil)
|
|
{
|
|
ID = id;
|
|
User = user;
|
|
RegisteredCrawlSessions = registeredCrawlSessions;
|
|
ValidUntil = validUntil;
|
|
}
|
|
}
|
|
}
|