Extract response exceptions
[smsapi-csharp.git] / smsapi / Api / HLRFactory.cs
blobf25fd3d2d380e70c5c993afed60259928a5d3e15
1 using SMSApi.Api;
2 using SMSApi.Api.Action;
4 namespace SMSApi.Api
6 public class HLRFactory : Factory
8 public HLRFactory(ProxyAddress address = ProxyAddress.SmsApiIo)
9 : base(address)
10 { }
12 public HLRFactory(IClient client, ProxyAddress address = ProxyAddress.SmsApiIo)
13 : base(client, address)
14 { }
16 public HLRFactory(IClient client, Proxy proxy)
17 : base(client, proxy)
18 { }
20 public HLRCheckNumber ActionCheckNumber(string number = null)
22 var action = new HLRCheckNumber();
23 action.Proxy(proxy);
24 action.SetNumber(number);
25 return action;
30 public static class HlrFeatureRegister
32 public static HLRFactory HLR(this Features features)
34 return new HLRFactory(features.Client, features.Proxy);