matt review changes

This commit is contained in:
axellse 2024-09-21 23:46:22 +02:00
parent 530bb84095
commit 5ff1901721
3 changed files with 10 additions and 7 deletions

View File

@ -217,13 +217,15 @@
if (match.Groups.Count != 2) if (match.Groups.Count != 2)
{ {
App.Logger.WriteLine(LOG_IDENT, $"Failed to assert format for game join load time entry"); App.Logger.WriteLine(LOG_IDENT, "Failed to assert format for game join load time entry");
App.Logger.WriteLine(LOG_IDENT, entry); App.Logger.WriteLine(LOG_IDENT, entry);
return; return;
} }
Data.UserId = match.Groups[1].Value; UInt64.TryParse(match.Groups[1].Value, out ulong result);
App.Logger.WriteLine(LOG_IDENT, $"Got userid as " + Data.UserId);
Data.UserId = result;
App.Logger.WriteLine(LOG_IDENT, $"Got userid as {Data.UserId}");
} }
if (entry.Contains(GameJoiningUniverseEntry)) if (entry.Contains(GameJoiningUniverseEntry))

View File

@ -1,4 +1,5 @@
using System.Windows; using System.Windows;
using Bloxstrap.Models.RobloxApi;
using DiscordRPC; using DiscordRPC;
namespace Bloxstrap.Integrations namespace Bloxstrap.Integrations
@ -235,7 +236,7 @@ namespace Bloxstrap.Integrations
} }
else else
{ {
smallImage = userPfpResponse.Data.ToArray()[0].ImageUrl; smallImage = userPfpResponse.Data.First().ImageUrl;
App.Logger.WriteLine(LOG_IDENT, $"Got user thumbnail as {smallImage}"); App.Logger.WriteLine(LOG_IDENT, $"Got user thumbnail as {smallImage}");
} }

View File

@ -35,7 +35,7 @@ namespace Bloxstrap.Models.Entities
/// </summary> /// </summary>
public string AccessCode { get; set; } = string.Empty; public string AccessCode { get; set; } = string.Empty;
public string UserId { get; set; } = String.Empty; public ulong UserId { get; set; } = 0;
public string MachineAddress { get; set; } = string.Empty; public string MachineAddress { get; set; } = string.Empty;