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); }
/// <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) { }
/// <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) { }
/// <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) { }
/// <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) { }
/// <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) { }
/// <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) { }
/// <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) { }