~aleteoryx/muditaos

ref: e35fca8524dfe78c3076073d20bedad897e876a7 muditaos/module-apps/application-music-player/doc/data/UpdateRepoQueries.puml -rw-r--r-- 873 bytes
e35fca85 — Lefucjusz [MOS-1064] Fix no input language selected for French/Spanish 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@startuml
skinparam BackgroundColor F0F0F0
start

if (currentlyPlayingTrackIndex ⊂ musicFilesCache) then (no) 
partition "**query** newData" {
    : offset = currentlyPlayingTrackIndex - cacheThreshold
     size = cacheMaxSize
     updateMusicFilesList(offset, size);
     }
else (yes)
  if (
   currentlyPlayingTrackIndex >
   musicFilesCache.lastIndex - cacheThreshold
   ) then (yes)
   partition "**query** newBackData" {
    : offset = musicFilesCache.lastIndex + 1
     size = cacheThreshold
     updateMusicFilesList(offset, size);
     }
  else (no)
	 if (
	  currentlyPlayingTrackIndex <
	  musicFilesCache.firstIndex + cacheThreshold
	  ) then (yes)
	  partition "**query** newFrontData" {
	   : offset = musicFilesCache.firstIndex - cacheThreshold
	    size = cacheThreshold
	    updateMusicFilesList(offset, size);
	    } 
	 endif
  endif
endif

stop
@enduml