/// <summary>
        /// The constructor creates an instance of <see cref="AttRestService"/>.
        /// </summary>
        /// <param name="settings"><see cref="AttServiceSettings"/>ATT service settings.</param>
        /// <exception cref="System.ArgumentNullException">The constructor will throw an exception when the setting variable is null.</exception>
        protected AttRestService(AttServiceSettings settings)
        {
            Argument.ExpectNotNull(() => settings);

            _settings    = settings;
            _authService = new AuthorizationService(_settings);
        }
        /// <summary>
        /// Creates instance of <see cref="AttApiService"/>
        /// </summary>
        /// <param name="endPoint">AT&amp;T service endpoint</param>
        /// <param name="apiKey">API key</param>
        /// <param name="secretKey">Secret key</param>
        /// <exception cref="System.ArgumentNullException">endPoint is null or apiKey is null or secretKey is null.</exception>
        protected AttApiService(string endPoint, string apiKey, string secretKey)
        {
            Argument.ExpectNotNullOrWhiteSpace(() => endPoint);
            Argument.ExpectNotNullOrWhiteSpace(() => apiKey);
            Argument.ExpectNotNullOrWhiteSpace(() => secretKey);

            _settings = new AttServiceSettings(apiKey, secretKey, new Uri(endPoint));
        }
Exemple #3
0
 /// <summary>
 /// The constructor creates a new instance of <see cref="SpeechService"/>.
 /// </summary>
 /// <param name="settings">Instance of <see cref="AttServiceSettings"/> containing ATT API settings.</param>
 public SpeechService(AttServiceSettings settings)
     : base(settings)
 {
 }
Exemple #4
0
 /// <summary>
 /// The constructor, this creates an instance of <see cref="MmsService"/>.
 /// </summary>
 /// <param name="settings">AT&amp;T service settings.</param>
 public MmsService(AttServiceSettings settings)
     : base(settings)
 {
 }
 /// <summary>
 /// Creates instance of <see cref="AuthorizationService"/>.
 /// </summary>
 /// <param name="settings"><see cref="AttServiceSettings"/>Service settings.</param>
 /// <exception cref="System.ArgumentNullException">Throws exception when settings is null.</exception>
 public AuthorizationService(AttServiceSettings settings)
 {
     Argument.ExpectNotNull(() => settings);
     _settings = settings;
 }
 /// <summary>
 /// The constructor creates an instance of the <see cref="WapPushService"/>.
 /// </summary>
 /// <param name="settings">Passing a standard AT&amp;T service settings object.</param>
 public WapPushService(AttServiceSettings settings)
     : base(settings)
 {
 }