public FcmClient(IFcmClientSettings settings, IFcmHttpClient httpClient) { if (settings == null) { throw new ArgumentNullException("settings"); } if (httpClient == null) { throw new ArgumentNullException("httpClient"); } this.settings = settings; this.httpClient = httpClient; }
public FcmClient(IFcmClientSettings settings, IJsonSerializer serializer, IFcmHttpClient httpClient) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } if (httpClient == null) { throw new ArgumentNullException(nameof(httpClient)); } this.serializer = serializer; this.settings = settings; this.httpClient = httpClient; }
public FcmClient(IFcmClientSettings settings, IFcmHttpClient fcmHttpClient) : this(settings, JsonSerializer.Default, fcmHttpClient) { }