Reviewed and Updated models for Shared project

This commit is contained in:
2026-04-26 02:33:40 -04:00
parent 5486795f4d
commit 687387b105
11 changed files with 212 additions and 222 deletions

View File

@@ -3,6 +3,7 @@ using WebSocketSharp;
using System.Text.Json;
using System.Text.Json.Serialization;
using RelayShared.Rtc;
using RelayShared.Services;
namespace RelayClient;

View File

@@ -5,11 +5,8 @@ namespace RelayClient;
public static class MauiProgram
{
// public static event Action<ChatMessage>? MessageSent;
public static MauiApp CreateMauiApp()
{
//wsc.OnMessage += (sender, e) => OnWebSocketRecieved(sender, e);
//wsc.Connect();
var builder = MauiApp.CreateBuilder();
builder.UseMauiApp<App>().ConfigureFonts(fonts =>
{
@@ -18,8 +15,6 @@ public static class MauiProgram
fonts.AddFont("AnonymousPro-Italic.ttf", "AnonymousProItalic");
fonts.AddFont("AnonymousPro-Regular.ttf", "AnonymousProRegular");
});
#if DEBUG
builder.Services.AddHybridWebViewDeveloperTools();
@@ -28,19 +23,4 @@ public static class MauiProgram
return builder.Build();
}
//public static void OnWebSocketRecieved(object? sender, MessageEventArgs e)
//{
// Console.WriteLine(sender.ToString());
//
// ChatSimulator.Send(e.Data.Split(":")[0], e.Data.Split(":")[1]);
// // var message = new ChatMessage
// // {
// // SenderUsername = e.Data.Split(":")[0],
// // Text = e.Data.Split(":")[1],
// // Timestamp = DateTime.Now
// // };
// //
// // MessageSent?.Invoke(message);
//}
}