Skip to content

Commit

Permalink
(#412) notifications: update infrastructure extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Sep 16, 2024
1 parent 677d017 commit ebea217
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@
using MiniSpace.Services.Notifications.Infrastructure.Services.Clients;
// using MiniSpace.Services.Notifications.Infrastructure.Managers;
using MiniSpace.Services.Notifications.Application.Hubs;
using MiniSpace.Services.Notifications.Application.Events.External.Comments;
using MiniSpace.Services.Notifications.Application.Events.External.Identity;
using MiniSpace.Services.Notifications.Application.Events.External.Reports;
using MiniSpace.Services.Notifications.Application.Events.External.Reactions;
using MiniSpace.Services.Notifications.Application.Events.External.Posts;
using MiniSpace.Services.Notifications.Application.Events.External.Friends;
using MiniSpace.Services.Notifications.Application.Events.External.Events;

namespace MiniSpace.Services.Notifications.Infrastructure
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Microsoft.Extensions.Logging;
using MiniSpace.Services.Notifications.Application.Commands;
using MiniSpace.Services.Notifications.Application.Events.External;
using MiniSpace.Services.Notifications.Application.Events.External.Friends;

namespace MiniSpace.Services.Notifications.Infrastructure.Logging
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Text.Json;
using System.Threading.Tasks;
using Convey.HTTP;
using MiniSpace.Services.Notifications.Application.Dto;
using MiniSpace.Services.Notifications.Application.Dto.Comments;
using MiniSpace.Services.Notifications.Application.Services.Clients;

namespace MiniSpace.Services.Notifications.Infrastructure.Services.Clients
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Threading.Tasks;
using Convey.HTTP;
using MiniSpace.Services.Notifications.Application.Dto;
using MiniSpace.Services.Notifications.Application.Dto.Events;
using MiniSpace.Services.Notifications.Application.Services.Clients;

namespace MiniSpace.Services.Notifications.Infrastructure.Services.Clients
Expand Down Expand Up @@ -43,7 +44,6 @@ private async Task<T> HandleResponseAsync<T>(HttpResponseMessage response) where
}

var json = await response.Content.ReadAsStringAsync();
// Console.WriteLine("JSON Response: " + json);

try
{
Expand All @@ -54,12 +54,10 @@ private async Task<T> HandleResponseAsync<T>(HttpResponseMessage response) where

if (responseObject == null)
{
// Console.WriteLine("Deserialized object is null. Possibly empty JSON.");
return null;
}

var jsonString = JsonSerializer.Serialize(responseObject, new JsonSerializerOptions { WriteIndented = true });
// Console.WriteLine("Deserialized JSON Object: " + jsonString);

return responseObject;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Threading.Tasks;
using Convey.HTTP;
using MiniSpace.Services.Notifications.Application.Dto;
using MiniSpace.Services.Notifications.Application.Dto.Posts;
using MiniSpace.Services.Notifications.Application.Services.Clients;

namespace MiniSpace.Services.Notifications.Infrastructure.Services.Clients
Expand Down

0 comments on commit ebea217

Please sign in to comment.