-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSite.cs
35 lines (32 loc) · 783 Bytes
/
Site.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace passgen
{
public class Site
{
public string _URL { get; set; }
// A site can have multiple users, so we'll use a list to store them.
public List<User> Users { get; set; }
public Site(string URL)
{
if (Users == null)
{
Users = new List<User>();
}
_URL = URL;
}
public Site(string URL, User user)
{
if (Users == null)
{
Users = new List<User>();
}
_URL = URL;
Users.Add(user);
}
}
}