pan class="kd">func</span> <span class="nf">getCalories</span><span class="p">(</span><span class="nv">identifier</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">fromDate</span><span class="p">:</span> <span class="kt">Date</span><span class="p">,</span> <span class="nv">toDate</span><span class="p">:</span> <span class="kt">Date</span><span class="p">,</span> <span class="nv">caloriesType</span><span class="p">:</span> <span class="kt"><a href="../Enum