[ADD] added checking of all folders in username directory
This commit is contained in:
@@ -125,13 +125,17 @@ namespace DoctorApp.Utils
|
||||
{
|
||||
// read the .bin file that is in the message
|
||||
// update the view
|
||||
|
||||
//Debug.WriteLine($"[DOCTOR CLIENT] Got raw bike data: " + Encoding.ASCII.GetString(payloadbytes));
|
||||
MainViewModel.TransferDataToClientBike(payloadbytes);
|
||||
}
|
||||
else if (DataParser.isRawDataBPMDoctor(messageBytes))
|
||||
{
|
||||
MainViewModel.TransferDataToClientBPM(payloadbytes);
|
||||
}
|
||||
else if (DataParser.IsHistoricBikeData(messageBytes))
|
||||
{
|
||||
Debug.WriteLine("[DOCTOR CLIENT] got historic bike data: " + Encoding.ASCII.GetString(payloadbytes));
|
||||
}
|
||||
Array.Copy(totalBuffer, expectedMessageLength, totalBuffer, 0, (totalBufferReceived - expectedMessageLength)); //maybe unsafe idk
|
||||
totalBufferReceived -= expectedMessageLength;
|
||||
expectedMessageLength = BitConverter.ToInt32(totalBuffer, 0);
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace DoctorApp.ViewModels
|
||||
// request the historic data from the server
|
||||
this.SaveHistoricData = new RelayCommand<object>((parameter) =>
|
||||
{
|
||||
this.client.sendMessage(DataParser.GetGetFileMessage(PatientInfo.Username, DateTime.Now));
|
||||
this.client.sendMessage(DataParser.GetGetFileMessage(PatientInfo.Username));
|
||||
// data is stored on the server
|
||||
// send request to server that we want to get the current historic data from the patient
|
||||
// server sends this back
|
||||
|
||||
Reference in New Issue
Block a user