From c600a0443a305cee6a7f98105f57a9811e072622 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 24 Jul 2024 14:43:29 -0400 Subject: [PATCH] Added private instances --- .../example/healthtrack/view/ChallengeDetails.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/HealthTrack/app/src/main/java/com/example/healthtrack/view/ChallengeDetails.java b/HealthTrack/app/src/main/java/com/example/healthtrack/view/ChallengeDetails.java index f45de99..bb090a8 100644 --- a/HealthTrack/app/src/main/java/com/example/healthtrack/view/ChallengeDetails.java +++ b/HealthTrack/app/src/main/java/com/example/healthtrack/view/ChallengeDetails.java @@ -1,5 +1,7 @@ package com.example.healthtrack.view; +import com.example.healthtrack.model.User; +import com.example.healthtrack.model.Workout; import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.database.DatabaseReference; import android.content.Intent; @@ -12,10 +14,18 @@ import androidx.appcompat.app.AppCompatActivity; import com.example.healthtrack.R; +import java.util.ArrayList; + public class ChallengeDetails extends AppCompatActivity{ private DatabaseReference database; private DatabaseReference workoutDatabase; + private DatabaseReference userDatabase; private FirebaseAuth mAuth; + private String challenger; + private String deadline; + private String desc; + private ArrayList workout; + private ArrayList user; @Override protected void onCreate(Bundle savedInstanceState) { @@ -23,6 +33,6 @@ protected void onCreate(Bundle savedInstanceState) { EdgeToEdge.enable(this); setContentView(R.layout.activity_challenge_details); - + } }