public InstructorAdapter(List <Instructor> instructors) { _instructors = instructors; sectionHeaders = SectionIndexerBuilder.BuildSectionHeaders(instructors); positionForSectionMap = SectionIndexerBuilder.BuildPositionForSectionMap(instructors); sectionForPositionMap = SectionIndexerBuilder.BuildSectionForPositionMap(instructors); }
public ChatAdapter(List <Chat> chats) { this.chats = chats; sectionHeaders = SectionIndexerBuilder.BuildSectionHeaders(chats); positionForSectionMap = SectionIndexerBuilder.BuildPositionForSectionMap(chats); sectionForPositionMap = SectionIndexerBuilder.BuildSectionForPositionMap(chats); }