public SmallGroupClusterType FromArena(ClusterType arena) { SmallGroupClusterType type = new SmallGroupClusterType(); SmallGroupClusterLevelMapper levelMapper = new SmallGroupClusterLevelMapper(); type.ClusterTypeID = arena.ClusterTypeID; type.AllowOccurrences = arena.AllowOccurrences; type.AllowRegistration = arena.AllowRegistration; type.CategoryID = arena.CategoryID; type.LeaderRelationshipStrength = arena.LeaderRelationshipStrength; type.Name = arena.Name; type.PeerRelationshipStrength = arena.PeerRelationshipStrength; type.Levels = new List <SmallGroupClusterLevel>(); foreach (ClusterLevel lv in arena.Levels) { type.Levels.Add(levelMapper.FromArena(lv)); } return(type); }
public SmallGroupClusterType FromArena(ClusterType arena) { SmallGroupClusterType type = new SmallGroupClusterType(); SmallGroupClusterLevelMapper levelMapper = new SmallGroupClusterLevelMapper(); type.ClusterTypeID = arena.ClusterTypeID; type.AllowOccurrences = arena.AllowOccurrences; type.AllowRegistration = arena.AllowRegistration; type.CategoryID = arena.CategoryID; type.LeaderRelationshipStrength = arena.LeaderRelationshipStrength; type.Name = arena.Name; type.PeerRelationshipStrength = arena.PeerRelationshipStrength; type.Levels = new List<SmallGroupClusterLevel>(); foreach (ClusterLevel lv in arena.Levels) { type.Levels.Add(levelMapper.FromArena(lv)); } return type; }