Пример #1
0
        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;
        }
Пример #2
0
        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;
        }
Пример #3
0
 public FcmClient(IFcmClientSettings settings, IFcmHttpClient fcmHttpClient)
     : this(settings, JsonSerializer.Default, fcmHttpClient)
 {
 }