示例#1
0
        internal TelekomClient(TelekomAuth authentication, ServiceEnvironment environment,
                               string baseUrlTemplate)
        {
            if (authentication == null)
            {
                throw new ArgumentNullException("authentication");
            }

            this.authentication = authentication;

            // Replace the placeholder for environment in baseUrlTemplate
            string environmentString = Enum.GetName(typeof(ServiceEnvironment), environment).ToLower();

            ServiceBaseUrl = TelekomBaseUrl + string.Format(baseUrlTemplate, environmentString);
        }
示例#2
0
 /// <summary>
 /// Constructs a Send SMS API client with specified authentication method and environment.
 /// </summary>
 /// <param name="authentication">Authentication instance</param>
 /// <param name="environment">Environment used for this client's service invocations</param>
 public SendMmsClient(TelekomAuth authentication, ServiceEnvironment environment)
     : base(authentication, environment, ServicePath)
 {
 }
示例#3
0
 /// <summary>
 /// Constructs a Send SMS API Query Report client with specified authentication method and environment.
 /// </summary>
 /// <param name="authentication">Authentication instance</param>
 /// <param name="serviceEnvironment">Environment used for this client's service invocations</param>
 public QueryReportClient(TelekomAuth authentication, ServiceEnvironment serviceEnvironment)
     : base(authentication, serviceEnvironment, ServicePath)
 {
 }
示例#4
0
 /// <summary>
 /// Constructs a Send SMS API Query Report client with specified authentication method and environment.
 /// </summary>
 /// <param name="authentication">Authentication instance</param>
 /// <param name="serviceEnvironment">Environment used for this client's service invocations</param>
 public ReceiveNotificationSubscribeClient(TelekomAuth authentication, ServiceEnvironment serviceEnvironment)
     : base(authentication, serviceEnvironment, ServicePath)
 {
 }
示例#5
0
 /// <summary>
 /// Constructs a Voice Call API client with specified authentication method and environment.
 /// </summary>
 /// <param name="authentication">Authentication instance</param>
 /// <param name="environment">Environment used for this client's service invocations</param>
 public Speech2TextClient(TelekomAuth authentication, ServiceEnvironment environment)
     : base(authentication, environment, ServicePath)
 {
 }
示例#6
0
 /// <summary>
 /// Constructs a Send SMS API client with specified authentication method and environment.
 /// </summary>
 /// <param name="authentication">Authentication instance</param>
 /// <param name="environment">Environment used for this client's service invocations</param>
 public SendSmsReceiveClient(TelekomAuth authentication, ServiceEnvironment serviceEnvironment)
     : base(authentication, serviceEnvironment, ServicePath)
 {
 }
示例#7
0
 /// <summary>
 /// Constructs a Voice Call API client with specified authentication method and environment.
 /// </summary>
 /// <param name="authentication">Authentication instance</param>
 /// <param name="environment">Environment used for this client's service invocations</param>
 public VoiceCallClient(TelekomAuth authentication, ServiceEnvironment environment)
     : base(authentication, environment, ServicePath)
 {
 }
示例#8
0
 /// <summary>
 /// Constructs a SMS Validation API client with specified authentication method and environment.
 /// </summary>
 /// <param name="authentication">Authentication instance</param>
 /// <param name="environment">Environment used for this client's service invocations</param>
 public SmsValidationClient(TelekomAuth authentication, ServiceEnvironment environment)
     : base(authentication, environment, ServicePath)
 {
 }