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 e79c3b3..b58060b 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/Acanthus.java +++ b/app/src/main/java/org/ntlab/acanthus_client/Acanthus.java @@ -3,6 +3,11 @@ import android.app.Application; import android.content.SharedPreferences; +import org.ntlab.acanthus_client.entities.Animation; +import org.ntlab.acanthus_client.entities.AnimationJson; + +import java.util.ArrayList; + //----------------------------------------------------------------- // ユーザーアカウント public class Acanthus extends Application { @@ -14,6 +19,8 @@ private String preferenceToken; //----------------------------------------------------------------- private Integer aid; + private Animation currentAnimation; + private ArrayList animationJsonList; //----------------------------------------------------------------- // getter @@ -62,6 +69,10 @@ return aid; } + public Animation getCurrentAnimation() { + return currentAnimation; + } + //----------------------------------------------------------------- // setter public void setPreferenceUid(Integer preferenceUid) { @@ -102,5 +113,15 @@ public void setAid(Integer aid) { this.aid = aid; } + + public void setCurrentAnimation(Animation currentAnimation) { + this.currentAnimation = currentAnimation; + } + + //----------------------------------------------------------------- + // + public void addAnimationJsonList(AnimationJson animationJson) { + this.animationJsonList.add(animationJson); + } //----------------------------------------------------------------- }