Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Network Status to use the interface instead of client #68

Merged
merged 6 commits into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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