using System; [Serializable] public class HeartRateData { // Jeśli serwer wysyła {"hr": 70}, to musi być 'hr' public int hr; }