Extract response exceptions
[smsapi-csharp.git] / smsapi / Api / PingFactory.cs
blob103d575f695e8b97717a86603cf8de6acf2959a2
1 using SMSApi.Api.Action.Ping;
3 namespace SMSApi.Api;
5 public class PingFactory : Factory
7 public PingFactory(IClient client, ProxyAddress address = ProxyAddress.SmsApiIo) : base(client, address)
11 public PingFactory(IClient client, Proxy proxy) : base(client, proxy)
15 public PingService PingService()
17 var service = new PingService();
18 service.Proxy(proxy);
20 return service;
24 public static class PingFeatureRegister
26 public static PingFactory Ping(this Features features)
28 return new PingFactory(features.Client, features.Proxy);