mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-03 10:51:39 +00:00
build: change of package name
This commit is contained in:
parent
49afdbe4eb
commit
b76a38cb30
274 changed files with 1981 additions and 2161 deletions
|
|
@ -0,0 +1,33 @@
|
|||
package com.cappielloantonio.tempo.viewmodel;
|
||||
|
||||
import android.app.Application;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.lifecycle.AndroidViewModel;
|
||||
|
||||
import com.cappielloantonio.tempo.repository.PodcastRepository;
|
||||
import com.cappielloantonio.tempo.subsonic.models.PodcastEpisode;
|
||||
|
||||
public class PodcastEpisodeBottomSheetViewModel extends AndroidViewModel {
|
||||
private final PodcastRepository podcastRepository;
|
||||
|
||||
private PodcastEpisode podcastEpisode;
|
||||
|
||||
public PodcastEpisodeBottomSheetViewModel(@NonNull Application application) {
|
||||
super(application);
|
||||
|
||||
podcastRepository = new PodcastRepository();
|
||||
}
|
||||
|
||||
public PodcastEpisode getPodcastEpisode() {
|
||||
return podcastEpisode;
|
||||
}
|
||||
|
||||
public void setPodcastEpisode(PodcastEpisode podcast) {
|
||||
this.podcastEpisode = podcast;
|
||||
}
|
||||
|
||||
public void deletePodcastEpisode() {
|
||||
if (podcastEpisode != null) podcastRepository.deletePodcastEpisode(podcastEpisode.getId());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue