예제 #1
0
 public ApiParamsBuilder(CellsyntCredentials credentials)
 {
     _credentials = credentials ?? throw new ArgumentNullException(nameof(credentials));
 }
예제 #2
0
 public CellsyntSmsGateway(CellsyntCredentials credentials)
 {
     _paramsBuilder = new ApiParamsBuilder(credentials);
 }
 /// <summary>
 /// Create an instance to the <see cref="ICellsyntSmsGateway"/>
 /// </summary>
 /// <param name="credentials">The Cellsynt account credentials</param>
 /// <returns>ICellsyntSmsGateway</returns>
 public static ICellsyntSmsGateway Create(CellsyntCredentials credentials)
 {
     return(new CellsyntSmsGateway(credentials ?? throw new ArgumentNullException(nameof(credentials))));
 }