public ApiParamsBuilder(CellsyntCredentials credentials) { _credentials = credentials ?? throw new ArgumentNullException(nameof(credentials)); }
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)))); }