@@ -33,22 +33,22 @@ public async Task<Dictionary<string, Publication>> GetBibleTranslations(string l
3333 return JsonConvert . DeserializeObject < IEnumerable < Publication > > ( bibleTranslations ) . ToDictionary ( x => x . Code , x => x ) ;
3434 }
3535
36- public async Task < Bible . Alarm . Common . DataStructures . OrderedDictionary < int , BibleBook > > GetBibleBooks ( string languageCode , string versionCode )
36+ public async Task < System . Collections . Generic . SortedDictionary < int , BibleBook > > GetBibleBooks ( string languageCode , string versionCode )
3737 {
3838 var root = indexRoot ;
3939 var booksIndex = Path . Combine ( root , "Audio" , "Bible" , languageCode , versionCode , "books.json" ) ;
4040 var bibleBooks = await File . ReadAllTextAsync ( booksIndex ) ;
41- return new Bible . Alarm . Common . DataStructures . OrderedDictionary < int , BibleBook > ( JsonConvert . DeserializeObject < IEnumerable < BibleBook > > ( bibleBooks )
42- . Select ( x => new KeyValuePair < int , BibleBook > ( x . Number , x ) ) ) ;
41+ return new System . Collections . Generic . SortedDictionary < int , BibleBook > ( JsonConvert . DeserializeObject < IEnumerable < BibleBook > > ( bibleBooks )
42+ . ToDictionary ( x => x . Number , x => x ) ) ;
4343 }
4444
45- public async Task < Bible . Alarm . Common . DataStructures . OrderedDictionary < int , BibleChapter > > GetBibleChapters ( string languageCode , string versionCode , int bookNumber )
45+ public async Task < System . Collections . Generic . SortedDictionary < int , BibleChapter > > GetBibleChapters ( string languageCode , string versionCode , int bookNumber )
4646 {
4747 var root = indexRoot ;
4848 var booksIndex = Path . Combine ( root , "Audio" , "Bible" , languageCode , versionCode , bookNumber . ToString ( ) , "chapters.json" ) ;
4949 var bibleChapters = await File . ReadAllTextAsync ( booksIndex ) ;
50- return new Bible . Alarm . Common . DataStructures . OrderedDictionary < int , BibleChapter > ( JsonConvert . DeserializeObject < IEnumerable < BibleChapter > > ( bibleChapters )
51- . Select ( x => new KeyValuePair < int , BibleChapter > ( x . Number , x ) ) ) ;
50+ return new System . Collections . Generic . SortedDictionary < int , BibleChapter > ( JsonConvert . DeserializeObject < IEnumerable < BibleChapter > > ( bibleChapters )
51+ . ToDictionary ( x => x . Number , x => x ) ) ;
5252 }
5353
5454 public async Task < Dictionary < string , Publication > > GetMelodyMusicReleases ( )
@@ -59,13 +59,13 @@ public async Task<Dictionary<string, Publication>> GetMelodyMusicReleases()
5959 return JsonConvert . DeserializeObject < IEnumerable < Publication > > ( fileContent ) . ToDictionary ( x => x . Code , x => x ) ;
6060 }
6161
62- public async Task < Bible . Alarm . Common . DataStructures . OrderedDictionary < int , MusicTrack > > GetMelodyMusicTracks ( string publicationCode )
62+ public async Task < System . Collections . Generic . SortedDictionary < int , MusicTrack > > GetMelodyMusicTracks ( string publicationCode )
6363 {
6464 var root = indexRoot ;
6565 var trackIndex = Path . Combine ( root , "Music" , "Melodies" , publicationCode , "tracks.json" ) ;
6666 var fileContent = await File . ReadAllTextAsync ( trackIndex ) ;
67- return new Bible . Alarm . Common . DataStructures . OrderedDictionary < int , MusicTrack > ( JsonConvert . DeserializeObject < IEnumerable < MusicTrack > > ( fileContent )
68- . Select ( x => new KeyValuePair < int , MusicTrack > ( x . Number , x ) ) ) ;
67+ return new System . Collections . Generic . SortedDictionary < int , MusicTrack > ( JsonConvert . DeserializeObject < IEnumerable < MusicTrack > > ( fileContent )
68+ . ToDictionary ( x => x . Number , x => x ) ) ;
6969 }
7070
7171 public async Task < Dictionary < string , Language > > GetVocalMusicLanguages ( )
@@ -84,13 +84,13 @@ public async Task<Dictionary<string, Publication>> GetVocalMusicReleases(string
8484 return JsonConvert . DeserializeObject < IEnumerable < Publication > > ( vocalReleases ) . ToDictionary ( x => x . Code , x => x ) ;
8585 }
8686
87- public async Task < Bible . Alarm . Common . DataStructures . OrderedDictionary < int , MusicTrack > > GetVocalMusicTracks ( string languageCode , string publicationCode )
87+ public async Task < System . Collections . Generic . SortedDictionary < int , MusicTrack > > GetVocalMusicTracks ( string languageCode , string publicationCode )
8888 {
8989 var root = indexRoot ;
9090 var trackIndex = Path . Combine ( root , "Music" , "Vocals" , languageCode , publicationCode , "tracks.json" ) ;
9191 var melodyTracks = await File . ReadAllTextAsync ( trackIndex ) ;
92- return new Bible . Alarm . Common . DataStructures . OrderedDictionary < int , MusicTrack > ( JsonConvert . DeserializeObject < IEnumerable < MusicTrack > > ( melodyTracks )
93- . Select ( x => new KeyValuePair < int , MusicTrack > ( x . Number , x ) ) ) ;
92+ return new System . Collections . Generic . SortedDictionary < int , MusicTrack > ( JsonConvert . DeserializeObject < IEnumerable < MusicTrack > > ( melodyTracks )
93+ . ToDictionary ( x => x . Number , x => x ) ) ;
9494 }
9595
9696 }
0 commit comments