diff --git a/app/src/main/java/com/example/nemophila/viewmodels/PostsViewModel.java b/app/src/main/java/com/example/nemophila/viewmodels/PostsViewModel.java index bb4252c..2985f6a 100644 --- a/app/src/main/java/com/example/nemophila/viewmodels/PostsViewModel.java +++ b/app/src/main/java/com/example/nemophila/viewmodels/PostsViewModel.java @@ -129,4 +129,12 @@ } }); } + + public ArrayList getUserIds() { + ArrayList ids = new ArrayList<>(); + for(Post post: shopPostsLiveData.getValue()) { + ids.add(post.getUid()); + } + return ids; + } }