1
using SMSApi
.Api
.Action
.MFA
;
5 public class MFAFactory
: Factory
7 public MFAFactory(ProxyAddress address
= ProxyAddress
.SmsApiIo
)
12 public MFAFactory(IClient client
, ProxyAddress address
= ProxyAddress
.SmsApiIo
)
13 : base(client
, address
)
17 public MFAFactory(IClient client
, Proxy proxy
)
22 public CreateMFACode
CreateMfaCode(string phoneNumber
)
24 var action
= new CreateMFACode(phoneNumber
);
30 public VerifyMFACode
VerifyMfaCode(string phoneNumber
, string code
)
32 var action
= new VerifyMFACode(phoneNumber
, code
);
39 public static class MFAFeatureRegister
41 public static MFAFactory
MFA(this Features features
)
43 return new MFAFactory(features
.Client
, features
.Proxy
);