Skip to content

Conversation

@KompelliSravanSyncfusion
Copy link
Collaborator

@KompelliSravanSyncfusion KompelliSravanSyncfusion commented Dec 30, 2025

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

ShareX_iIHnyjcooC

Android Demo

qemu-system-x86_64_dku4JI7bJG

Mac Demo

msedge_Px1BLl0rnY

IOS Demo

msedge_mTnCrZ53MH


private static List<CategoryPoint> BuildRevenueByRegionFromBuffer(IEnumerable<SalesRecord> records)
{
static string Norm(string? s)
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

}
}
}

Copy link
Collaborator

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!
Copy link
Collaborator

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 =>
Copy link
Collaborator

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;
}
}

Copy link
Collaborator

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;
Copy link
Collaborator

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);
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants