Progress with structure to send data

This commit is contained in:
fabjuuuh
2020-10-16 16:23:50 +02:00
parent e8a4901f09
commit 5751bbed81
6 changed files with 134 additions and 25 deletions

View File

@@ -76,6 +76,18 @@ namespace DoctorApp.ViewModels
}
public void BPMData(byte [] bytes)
{
//TODO
//Parsen van de data you fuck
}
public void BikeData(byte[] bytes)
{
//TODO
//Parsen van de data you fuck
}
}
}

View File

@@ -3,6 +3,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Security.Cryptography;
using System.Text;
using System.Windows.Controls;
using Util;
@@ -51,6 +52,30 @@ namespace DoctorApp.ViewModels
}
});
}
public void TransferDataToClientBike(byte[] bytes)
{
string username = DataParser.getNameFromBytes(bytes);
foreach(ClientInfoViewModel item in Tabs)
{
if(item.Username == username)
{
item.BikeData(bytes);
}
}
}
public void TransferDataToClientBPM(byte[] bytes)
{
string username = DataParser.getNameFromBytes(bytes);
foreach (ClientInfoViewModel item in Tabs)
{
if (item.Username == username)
{
item.BikeData(bytes);
}
}
}
}