-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/new ble #12
base: feature/aha
Are you sure you want to change the base?
Feature/new ble #12
Conversation
Adding getter for the singleton
* ci: add .deepsource.toml * ci: update .deepsource.toml * ci: update .deepsource.toml * ci: update .deepsource.toml * Finished the front end * Fixing View Model Inheritance and enter behavior * Fixing scoped namespaces --------- Co-authored-by: deepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com> Co-authored-by: Alexander Lopez <[email protected]>
Here's the code health analysis summary for commits Analysis Summary
|
* Initial Context Quiz UI Enhanced (#6) * Adding Localization to context quiz * All Language Translation Now Works * Eveything works now sort off * style: format code with ClangFormat and dotnet-format This commit fixes the style issues introduced in 8ecca7b according to the output from ClangFormat and dotnet-format. Details: #11 --------- Co-authored-by: mazenham1d <[email protected]> Co-authored-by: hamidm <[email protected]> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
|
||
// Get the stream from the embedded resource | ||
using var stream = await FileSystem.OpenAppPackageFileAsync(fileName); | ||
using var reader = new StreamReader(stream); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explicitly state the variable types?
} | ||
|
||
//private void OnDeviceAdvertised(object sender, DeviceEventArgs args) | ||
//{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented out code
|
||
private void OnDeviceDiscovered(object sender, DeviceEventArgs args) | ||
{ | ||
CheckAndRaiseEvent(args.Device); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless you foresee CheckAndRaiseEvent being used elsewhere in the code, could you move it back into this function?
|
||
public async Task StartScanningAsync() | ||
{ | ||
if (!_bluetoothManager.IsOn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea to check for this
|
||
public void StopScanning() | ||
{ | ||
_scanCancellationTokenSource?.Cancel(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do a null check?
//{ | ||
// // Build WebSocket handshake request | ||
// var handshakeRequest = new StringBuilder(); | ||
// handshakeRequest.AppendLine($"GET {webSocketUri.Host}{webSocketUri.PathAndQuery} HTTP/1.1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete
// //Dns.GetHostName will need to be removed if we want to test this nonlocally & Dns.GetHostEntry | ||
// //will be replaced with whichever host the service is talking to | ||
// string hostName = "o-chi.pcr.dog"; | ||
// IPHostEntry ipHostInfo = Dns.GetHostEntry(hostName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Aha.Views.Website"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still use this?
<!-- Top Color Bar --> | ||
<BoxView | ||
HeightRequest="50" | ||
BackgroundColor="#C1E0F4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a nit but we could probably swap out the hardcoded background colors with the ones in the resource folder.
SaveContextCommand = new Command(SaveContext); | ||
} | ||
|
||
private async void SaveContext(object obj) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use "object"?
No description provided.