Player Schema

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="player" type="player"/>

  <xs:element name="reward" type="reward"/>

  <xs:complexType name="player">
    <xs:sequence>
      <xs:element name="id" type="xs:long" minOccurs="0"/>
      <xs:element name="name" type="xs:string" minOccurs="0"/>
      <xs:element name="nickname" type="xs:string" minOccurs="0"/>
      <xs:element name="pointsDay" type="xs:int" minOccurs="0"/>
      <xs:element name="pointsWeek" type="xs:int" minOccurs="0"/>
      <xs:element name="pointsMonth" type="xs:int" minOccurs="0"/>
      <xs:element name="pointsAll" type="xs:int" minOccurs="0"/>
      <xs:element name="photo" type="xs:string" minOccurs="0"/>
      <xs:element name="accessToken" type="xs:string" minOccurs="0"/>
      <xs:element name="rewards" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="reward" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="currentLevel" type="reward" minOccurs="0"/>
      <xs:element name="nextLevel" type="reward" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="reward">
    <xs:sequence>
      <xs:element name="message" type="xs:string" minOccurs="0"/>
      <xs:element name="name" type="xs:string" minOccurs="0"/>
      <xs:element name="createdAt" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="image" type="xs:string" minOccurs="0"/>
      <xs:element name="type" type="xs:string" minOccurs="0"/>
      <xs:element name="rewardId" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>