Skip to content

Commit

Permalink
Change Network Status to use the interface instead of client (#68)
Browse files Browse the repository at this point in the history
* Update NetworkStatus.cs
  • Loading branch information
wiverson authored Jun 27, 2023
1 parent 24ac7c0 commit f9cab58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Gotrue/NetworkStatus.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Net.NetworkInformation;
using System.Threading.Tasks;
using Supabase.Gotrue.Interfaces;
namespace Supabase.Gotrue
{
/// <summary>
Expand All @@ -12,12 +13,12 @@ namespace Supabase.Gotrue
/// </summary>
public class NetworkStatus
{
private readonly Client _client;
private readonly IGotrueClient<User, Session> _client;
/// <summary>
/// Set up a listener for the network status.
/// </summary>
/// <param name="client"></param>
public NetworkStatus(Client client)
public NetworkStatus(IGotrueClient<User, Session> client)
{
_client = client;
}
Expand Down

0 comments on commit f9cab58

Please sign in to comment.