/// <summary> /// Creates a new Group. This constructor used when rebuilding Group object from DB. /// </summary> public Group() { this.GreenScore = 0; this.Wall = new Wall(); this.ActivityScore = new ActivityScore(); this.Contests = new List<Contest>(); this.HashTags = new List<string>(); this.Members = new List<User>(); }
public User(string firstname, string lastname) { FirstName = firstname; LastName = lastname; _stats = new Dictionary<Statistic, UserStatistic>(); Wall = new Wall(); ActivityScore = new ActivityScore(); userPrivacySettings = new PrivacySetting(); }
/// <summary> /// Creates a new Group. /// /// </summary> /// <param name="name">The name of the Group.</param> /// <param name="owner">The User that created the Group</param> /// <param name="description">A text description of the Group.</param> /// <param name="hashtags">A list of hashtags that can be used to search for the Group</param> public Group(string name, User owner, string description, List<string> hashtags) { this.Name = name; this.Owner = owner; this.Description = description; this.Members = new List<User>(); this.Members.Add(owner); this.HashTags = hashtags; this.GreenScore = 0; this.ActivityScore = new ActivityScore(); this.Wall = new Wall(); this.Contests = new List<Contest>(); }
/// <summary> /// Creates a new Group. /// /// </summary> /// <param name="id">A unique ID number identifying the Group.</param> /// <param name="name">The name of the Group.</param> /// <param name="owner">The User that created the Group</param> /// <param name="description">A text description of the Group.</param> /// <param name="hashtags">A list of hashtags that can be used to search for the Group</param> public Group(int id, string name, User owner, string description, List<string> hashtags) { this.ID = id; this.Name = name; this.Owner = owner; this.Members = new List<User>(); this.Members.Add(owner); owner.Groups.Add(this); this.HashTags = hashtags; this.GreenScore = owner.GreenScore; this.ActivityScore = owner.ActivityScore; this.Wall = new Wall(); this.Badges = new Dictionary<Statistic, Badge>(); this.Contests = new List<int>(); }