public static Tilt GetTilt(JSONNode data) { Tilt newTilt = new Tilt(); foreach (JSONNode baseStation in data.Children) { if (Config.VerifySerialNumber(baseStation ["config"])) { newTilt = DynamicState.GetTiltOfLastDynamicState(baseStation["dynamic_states"]); } } return(newTilt); }