﻿<?xml version="1.0" encoding="utf-8" ?>
<DataModel VerticalId="Weather">
  <Classes>
    <Class Name="Weather" TopLevel="True">
      <Fields>
        <Field Name="FavoriteWeatherLocations" Type="Collection" ClassName="Location" />
        <Field Name="DefaultWeatherLocation" Type="Class" ClassName="Location" />
        <Field Name="IsFRE" Type="Boolean" />
        <Field Name="Displayunit" Type="Int" />
        <Field Name="IsCCMinimized" Type="Boolean" />
        <Field Name="IsPersonalizationEnabled" Type="Boolean" />
        <Field Name="Version" Type="Int" />
        <Field Name="LastUpdatedAt" Type="Time" />
        <Field Name="LocationConfidence" Type="Class" ClassName="LocationConfidence" />
      </Fields>
      <!--<Defaults>
        -->
      <!-- Basic defaults for markets that have no defaults defined yet. -->
      <!--
        <Default Value="{&quot;Displayunit&quot;: 2, &quot;Version&quot;: 0,&quot;LastUpdatedAt&quot;: 0}" />
        <Default Market="en-us" Value="{&quot;Displayunit&quot;: 1, &quot;Version&quot;: 0,&quot;LastUpdatedAt&quot;: 0}" />
      </Defaults>-->
    </Class>
     
    <Class Name="Location">
      <Fields>
        <Field Name="GeoCoordinates" Type="Class" ClassName="GeoPoint" IsKey="True" />
        <Field Name="City" Type="String" IsKey="True" />
        <Field Name="State" Type="String" IsKey="True" />
        <Field Name="CountryRegion" Type="String" />
        <Field Name="PostalCode" Type="String" />
        <Field Name="LocationTypeId" Type="String" IsKey="True"/>
        <Field Name="ISOCode" Type="String" IsKey="True" />
        <Field Name="Name" Type="String" IsKey="True" />
        <Field Name="LocationType" Type="Int" IsKey="True" />
        <Field Name="Version" Type="Int" />
        <Field Name="EntityType" Type="String" IsKey="True" />
        <Field Name="QuadKey" Type="String" />
        <Field Name="Neighborhood" Type="String" IsKey="True" />
        <Field Name="DataLocale" Type="String" />
        <Field Name="Landmarks" Type="Collection" ClassName="String" />
      </Fields>
    </Class>

    <Class Name="GeoPoint">
      <Fields>
        <Field Name="Latitude" Type="Double" IsKey="True" />
        <Field Name="Longitude" Type="Double" IsKey="True" />
        <Field Name="Altitude" Type="Double" />
        <Field Name="Version" Type="Int" />
        <Field Name="BoundingBox" Type="Collection" ClassName="Double" />
      </Fields>
    </Class>

    <Class Name="LocationConfidence">
      <Fields>
        <Field Name="LatLong" Type="Int" />
        <Field Name="PostalCode" Type="Int" />
        <Field Name="City" Type="Int" />
        <Field Name="State" Type="Int" />
        <Field Name="Country" Type="Int" />
      </Fields>
    </Class>
  </Classes>
</DataModel>