package com.google.sps.data;
import com.google.gson.Gson;
import com.google.sps.data.PropertyNames;
import com.google.sps.data.Query;
import com.google.sps.data.SentimentTools;
import com.google.sps.data.Video;

// Represents a video analysis, holds the results from an analysis and can also analyze a video that is passed in.
public class VideoAnalysis {
    private static float sentimentScore;
    private static float sentimentMagnitude;
    private static String query;
    private static int QUERY_SIZE = 7;
    
    //If given a video we will run analysis on it !!THIS IS SLOWER THAN JUST PASSING IN THE VALUES IF YOU HAVE THEM!!
    public VideoAnalysis(Video video) {
        SentimentTools sentimentAnalysis = new SentimentTools(video);
        Query queryAnalysis = new Query(video, QUERY_SIZE);
        this.sentimentScore = SentimentTools.getScore();
        this.sentimentMagnitude = SentimentTools.getMagnitude();
        this.query = queryAnalysis.toString();
    }

    //Pass in the results from a Video analysis to create this object
    public VideoAnalysis(String _sentimentScore, String _sentimentMagnitude, String _query) {
        this.sentimentScore = _sentimentScore;
        this.sentimentMagnitude = _sentimentMagnitude;
        this.query = _query;
    }

    public void setSentimentScore(float score){
        this.sentimentScore = score;
    }

    public float getSentimentScore(){
        return this.sentimentScore;
    }

    public String setSentimentMagnitude(float magnitude) {
        this.sentimentMagnitude = score;
    }

    public float getSentimentMagnitude() {
        return this.sentimentMagnitude;
    }

    public void setQuery(String query){
        this.query = query;
    }

    public void getQuery(){
        return this.query;
    }

@@ -353,39 +353,32 @@
 s %7B%0A    private 
-static 
 float sentimentS
@@ -395,23 +395,16 @@
 private 
-static 
 float se
@@ -433,23 +433,16 @@
 private 
-static 
 String q
@@ -463,15 +463,8 @@
 ate 
-static 
 int 
@@ -1043,22 +1043,21 @@
 nalysis(
-String
+float
  _sentim
@@ -1066,22 +1066,21 @@
 tScore, 
-String
+float
  _sentim

Fix variables types in video analysis schema