public ThemeInfo getThemeInfo(int themeId) { Theme theme = getThemeById(themeId); if (theme != null) { ThemeInfo themeInfo = new ThemeInfo(); themeInfo.id = theme.id; themeInfo.type = theme.themeType; themeInfo.name = theme.Name; // copy the snippetIds to the array themeInfo.segmentIds = new int[theme.m_segments.Count]; for (int i = 0; i < theme.m_segments.Count; i++) { themeInfo.segmentIds[i] = theme.m_segments[i].Id; } return(themeInfo); } return(null); }
public ThemeInfo getThemeInfo(int themeId) { Theme theme = getThemeById(themeId); if (theme != null) { ThemeInfo themeInfo = new ThemeInfo(); themeInfo.id = theme.id; themeInfo.type = theme.themeType; themeInfo.name = theme.Name; // copy the snippetIds to the array themeInfo.segmentIds = new int[theme.m_segments.Count]; for (int i = 0; i < theme.m_segments.Count; i++) { themeInfo.segmentIds[i] = theme.m_segments[i].Id; } return themeInfo; } return null; }