Exemple #1
0
        public SgipSmsServer(SmsServerConfigurations configuration) : base(configuration)
        {
            this.MessageFactory = new SgipMessageFactory();


            var clientConfigurations = new SgipConfigurations()
            {
                HostName  = configuration.HostName,
                HostPort  = configuration.ClientPort,
                UserName  = configuration.UserName,
                Password  = configuration.Password,
                ServiceId = configuration.ServiceID
            };

            this.Client = new InternalSgipSmsClient(clientConfigurations);
        }
Exemple #2
0
        public SgipSmsClient(SgipConfigurations configuration) : base(configuration)
        {
            this.MessagesFactory = new SgipMessageFactory();

            SmsServerConfigurations serverConfigurations = new SmsServerConfigurations()
            {
                HostName  = configuration.ListenHostName,
                HostPort  = configuration.ListenPort,
                UserName  = configuration.UserName,
                Password  = configuration.Password,
                ServiceID = configuration.ServiceId
            };

            this.Server = new InternalSgipSmsServer(serverConfigurations);
            this.Server.ReportReceived += OnReportReceived;
        }
Exemple #3
0
 public InternalSgipSmsClient(SgipConfigurations configuration) : base(configuration)
 {
     this.MessagesFactory = new SgipMessageFactory();
 }