CUTR-at-USF / muser-firebase-export

Exports data collected with the MUSER Android app (https://github.com/CUTR-at-USF/MUSER) from Firebase
Apache License 2.0
0 stars 3 forks source link

Include the new AudioData Model class #7

Open BumbleFlash opened 3 years ago

BumbleFlash commented 3 years ago

We have added a model class to track the volume and output device on which the user is listening to. A new Audiodata class is added to the storage and it goes like

AudioData.kt

 val audioDeviceType: AudioDeviceType,
 val volumeData: VolumeData

VolumeData.kt

 val currentVolumeLevel: Int,
 val volumeMax: Int,
 val volumeMin: Int?,
 val volumeDB: Float?
pradeepsalunke commented 3 years ago

[com.google.cloud.firestore.QueryDocumentSnapshot@8aadcd3a, com.google.cloud.firestore.QueryDocumentSnapshot@8f735e65]Exception in thread "main" java.lang.RuntimeException: Could not deserialize object. Can't convert object of type java.lang.Double to type edu.usf.sas.pal.muser.model.MusicAnalysisModel$AudioData$VolumeData (found in field 'audioData.volumeData.volumeDB')

pradeepsalunke commented 3 years ago

I have made the required change do take a look.