﻿<?xml version="1.0" encoding="utf-8" ?>
<DataModel VerticalId="HealthAndFitness">
  <Classes>
    <Class Name="Health" TopLevel="True">
      <Fields>
        <Field Name="Gender" Type="String" />
        <Field Name="DateOfBirth" Type="Time" />
        <Field Name="Height" Type="Double" />
        <Field Name="HeightUnit" Type="Int" />
        <Field Name="Weight" Type="Double" />
        <Field Name="WeightUnit" Type="Int" />
        <Field Name="CaloriePreferences" Type="Class" ClassName="CaloriePreferences" />
        <Field Name="FitnessPreferences" Type="Class" ClassName="FitnessPreferences" />
        <Field Name="UnitPreferences" Type="Collection" ClassName="UnitPreferences" />
        <Field Name="HealthTrackerOptions" Type="Collection" ClassName="Int" />
        <Field Name="PedometerPreferences" Type="Class" ClassName="PedometerPreferences" />
        <Field Name="IsHealthVaultConnected" Type="Boolean" />
        <Field Name="IsPersonalizationEnabled" Type="Boolean" />
        <Field Name="Version" Type="Int" />
        <Field Name="LastUpdatedAt" Type="String" />
      </Fields>
    </Class>

    <Class Name="CaloriePreferences">
      <Fields>
        <Field Name="WeightGoal" Type="String" />
        <Field Name="LifeStyle" Type="Int" />
        <Field Name="DailyCalorieTarget" Type="Double" />
        <Field Name="CalorieTargetType" Type="Int"/>
      </Fields>
    </Class>

    <Class Name="FitnessPreferences">
      <Fields>
        <Field Name="FitnessPreferenceTypes" Type="Collection" ClassName="Int" />
        <Field Name="FitnessGoals" Type="Collection" ClassName="String" />
      </Fields>
    </Class>

    <Class Name="UnitPreferences">
      <Fields>
        <Field Name="UnitId" Type="String" IsKey="True" />
        <Field Name="Value" Type="Int" />
      </Fields>
    </Class>

    <Class Name="PedometerPreferences">
      <Fields>
        <Field Name="WalkingStrideLength" Type="Double" />
        <Field Name="WalkingStrideLengthUnit" Type="Int" />
        <Field Name="RunningStrideLength" Type="Double" />
        <Field Name="RunningStrideLengthUnit" Type="Int" />
        <Field Name="StepsGoal" Type="Int" />
        <Field Name="ShowNotifications" Type="Boolean" />
      </Fields>
    </Class>
  </Classes>
</DataModel>