00001 using System; 00002 using System.Collections.Generic; 00003 using System.Text; 00004 using Shared; 00005 00006 namespace Server 00007 { 00011 public class Role 00012 { 00013 private RoleType type; 00014 private Person person; 00015 private Project project; 00016 00023 public Role(Person person, RoleType type, Project project) 00024 { 00025 this.type = type; 00026 this.person = person; 00027 this.project = project; 00028 } 00029 00033 public Project Project 00034 { 00035 get { return project; } 00036 set { project = value; } 00037 } 00038 00042 public Person Person 00043 { 00044 get { return person; } 00045 } 00046 00050 public RoleType Type 00051 { 00052 get { return type; } 00053 set { type = value; } 00054 } 00055 00059 public RoleInfo Info 00060 { 00061 get 00062 { 00063 return new RoleInfo(person.UserName, project.ID, type); 00064 } 00065 } 00066 00067 } 00068 }
1.5.1-p1