Building an Enterprise App — Defining a case
Our panels are ready! We just need to populate them with info! We’ll need an object that represents a case, we’ll create a class object for that. What kind of info will define it? Our panels tell us what we need:
- A case ID
- Name
- Date
- Location
- Location Notes
- Photo
- Photo Notes
Aside from the Photo which will be a RawImage, the rest of the data will just be string data. We can create a class object named Case which will contain all of these variables, having this, we’ll be able to upload these objects to Amazons S3 and retrieve them as needed.
So let’s create a script called Case.cs and this will be our script:
Note that we won’t need to inherit Monobehaviour. This is just essentially a data container.