Welcome back.
Our Android app should allow the user to enter those parameters.
Cylinders.
Displacement.
Horsepower.
Weight.
Acceleration.
Model.
Year.
Origin one, two and three.
So we're going to design a data class that contains all those parameters.
And from this data class we need to store the results and the input from the user in order to pass it
to our TensorFlow Lite model.
For this, create a new package, name it as data, and inside this data create a new Kotlin class named
as Car Features.
Make it as data class.
Okay, inside this data class car features start creating the variables val cylinders.
It's of type float.
Displacement equals to float.
150 horsepower 100 f.
Weight 3000 f.
Also, it's a float.
Acceleration float.
Make it 15.
And the model year, which is 76.
For example, origin one, which is one f.
This is American, origin two European, and the third origin is Japanese.
So those are the features cylinders, displacement, horsepower, weight, acceleration, model year
and the origins.
And those are the default values of them.
If the user didn't specify them and I made them just for helping the user to select uh and take uh like
a quick overview about the numbers.
So he should not specify the number of cylinders like 100.
So it would be close to two for the displacement, the horsepower and so on.
Okay.
Let me create another data class named as Validate results.
Val is valid.
It's of type boolean and val error.
List of string equals to empty list.
So in this video we created those data classes for car features.
And we specified the nine parameters.
And the data class validate results that would be used in order to check the validation of the results,
and going to check that for errors and display a list of errors if there are any new errors.