package pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ScoreInfo {
    private int studentId;
    private int courseId;
    private float score;

    public String toJSON(){
        String json = "{";
        json += "\"studentId\":" + studentId + ",";
        json += "\"courseId\":" + courseId + ",";
        json += "\"score\":" + score + ",";
        return json + "}";
    }
}
