Firebase DatabaseReference vs DataSnapshot
<p>I did not quite understand when should I use DatabaseReference and when DataSnapshot.</p>

<p>In my application I seem to be using both of them without real distinction (maybe except for writing to Firebase in which case DataSnapshot was not made for).</p>