-
Notifications
You must be signed in to change notification settings - Fork 0
Real Time Chart updates using Firebase Server #3
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| private static List<CategoryPoint> BuildRevenueByRegionFromBuffer(IEnumerable<SalesRecord> records) | ||
| { | ||
| static string Norm(string? s) |
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.
use proper namings for the field instead of single characters.
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.
@PrithisIyyappan, Addressed the review suggestion
| } | ||
| } | ||
| } | ||
|
|
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 this unwanted space @KompelliSravanSyncfusion
| { | ||
| InitializeComponent(); | ||
|
|
||
| BindingContext = MauiProgram.Services! |
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.
Use null checks avoid null forgiving operator '!'.
|
|
||
| // Register services | ||
| builder.Services.AddSingleton<FirebaseService>(); | ||
| builder.Services.AddSingleton<DashboardViewModel>(sp => |
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.
avoid sp, and db use proper naming.
| return app; | ||
| } | ||
| } | ||
|
|
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 unwanted spaces.
|
|
||
| return builder.Build(); | ||
| var app = builder.Build(); | ||
| Services = app.Services; |
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.
what is the real purpose?
| var postUrl = RecordsBasePath + ".json"; | ||
| var content = new StringContent(JsonSerializer.Serialize(record), Encoding.UTF8, "application/json"); | ||
|
|
||
| using var response = await HttpClientShared.PostAsync(postUrl, content, cancellationToken).ConfigureAwait(false); |
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.
where the response is used?
Description
Connected to real time data base in Firebase server and implemented Server sent events to listen to the firebase added data and based on that updated data.
Windows Demo
Android Demo
Mac Demo
IOS Demo