diff --git a/app/src/main/java/org/ntlab/acanthus_client/Acanthus.java b/app/src/main/java/org/ntlab/acanthus_client/Acanthus.java index b58060b..ffb2f0b 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/Acanthus.java +++ b/app/src/main/java/org/ntlab/acanthus_client/Acanthus.java @@ -2,11 +2,13 @@ import android.app.Application; import android.content.SharedPreferences; +import android.graphics.drawable.shapes.OvalShape; import org.ntlab.acanthus_client.entities.Animation; import org.ntlab.acanthus_client.entities.AnimationJson; import java.util.ArrayList; +import java.util.Collection; //----------------------------------------------------------------- // ユーザーアカウント @@ -20,7 +22,7 @@ //----------------------------------------------------------------- private Integer aid; private Animation currentAnimation; - private ArrayList animationJsonList; + private Collection animationJsonList; //----------------------------------------------------------------- // getter @@ -73,6 +75,10 @@ return currentAnimation; } + public Collection getAnimationJsonList(){ + return animationJsonList; + } + //----------------------------------------------------------------- // setter public void setPreferenceUid(Integer preferenceUid) { @@ -118,6 +124,12 @@ this.currentAnimation = currentAnimation; } + //HomeViewModelでしようするためのsetter + public void setAnimationJsonList(Collection sentAnimationJsonList){ + this.animationJsonList.clear(); + this.animationJsonList.addAll(sentAnimationJsonList); + } + //----------------------------------------------------------------- // public void addAnimationJsonList(AnimationJson animationJson) {