示例#1
0
 public Group()
 {
     listClient = new List<GroupMember>();
     listMessage = new List<Message>();
     listResource = new List<Resource>();
     type = new GroupType();
 }
示例#2
0
        public List <Group> getGroupsByType(CarpoolingModel.Types.GroupType groupType)
        {
            List <Group> listTyGr = new List <Group>();
            var          groups   = db.Groups.Where(s => s.groupType == groupType.Id);

            foreach (CarpoolingDAL.Group res in groups)
            {
                listTyGr.Add(RepositoryUtility.createGroupFromDALGroup(res as CarpoolingDAL.Group));
            }
            return(listTyGr);
        }
 internal static GroupType createGroupTypeFromDALGType(CarpoolingDAL.GroupType g)
 {
     GroupType ngt = new GroupType(g.idGroupType, g.name);
     return ngt;
 }
示例#4
0
 public Group(Route route, DateTime startTime, Range startRange, GroupType type, string name, Range destinationRange)
     : this(route, startTime, startRange, type)
 {
     this.name = name;
     this.destinationRange = destinationRange;
 }
示例#5
0
 public Group(Route route, DateTime startTime, Range startRange, GroupType type)
     : this(route,startTime)
 {
     this.startRange = startRange;
     this.type = type;
 }