Exemplo n.º 1
0
        public BaseArray(Credentials Client,
                         SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Exemplo n.º 2
0
        public BaseSimple(Credentials Credentials,
                          SMSAPIClient SMSAPIClient)

            : base(Credentials, SMSAPIClient)

        {
        }
Exemplo n.º 3
0
        public ListContacts(Credentials Client,
                            SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Exemplo n.º 4
0
 public SenderAdd(Credentials Client,
                  SMSAPIClient Proxy,
                  String Name)
     : base(Client, Proxy)
 {
     this.Name = Name;
 }
Exemplo n.º 5
0
        protected Send(Credentials Credentials,
                       SMSAPIClient SMSAPIClient)

            : base(Credentials, SMSAPIClient)

        {
        }
Exemplo n.º 6
0
        public ListFields(Credentials Client,
                          SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Exemplo n.º 7
0
        public static SMSAPIClient GetSMSAPIClient()
        {
            ServiceClientCredentials credentials = new TokenCredentials("<bearer token>");
            var client = new SMSAPIClient(new Uri(Settings.SMS_API_ENDPOINT), credentials);

            return(client);
        }
Exemplo n.º 8
0
        public CreateGroup(Credentials Client,
                           SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Exemplo n.º 9
0
 static public void SendShortCode(SmsModel model)
 {
     using (SMSAPIClient client = GetSMSAPIClient())
     {
         client.Create(new SMSAPI.Models.SmsModel(Settings.SMS_API_SENDER, "+" + model.to, model.body));
     };
 }
Exemplo n.º 10
0
 public DeleteGroup(Credentials Client,
                    SMSAPIClient Proxy,
                    String groupId)
     : base(Client, Proxy)
 {
     GroupId = groupId;
 }
Exemplo n.º 11
0
/*        protected virtual TResult ConvertResponse(T response)
 *      {
 *          return (TResult)Convert.ChangeType(response, typeof(TResult));
 *      }*/

        public TResult Execute()
        {
            Validate();

            var resultStream = SMSAPIClient.Execute(Uri, Values(), Files(), Method).Result;

            var result = default(TResult);

            HandleError(resultStream);

            try
            {
                T response = ResponseToObject <T>(resultStream);
                result = ConvertResponse(response);
            }
            catch (System.Runtime.Serialization.SerializationException e)
            {
                //Problem z prasowaniem json'a
                throw new HostException(e.Message + " /" + Uri, HostException.E_JSON_DECODE);
            }

            resultStream.Close();

            return(result);
        }
Exemplo n.º 12
0
        public CreateField(Credentials Client,
                           SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Exemplo n.º 13
0
 public GetContact(Credentials Client,
                   SMSAPIClient Proxy,
                   String contactId)
     : base(Client, Proxy)
 {
     ContactId = contactId;
 }
Exemplo n.º 14
0
 public SenderSetDefault(Credentials Client,
                         SMSAPIClient Proxy,
                         String DefaultName)
     : base(Client, Proxy)
 {
     this.DefaultName = DefaultName;
 }
Exemplo n.º 15
0
        public PhonebookGroupEdit(Credentials Client,
                                  SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Exemplo n.º 16
0
        public PhonebookContactGet(Credentials Client,
                                   SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Exemplo n.º 17
0
 public ListContactGroups(Credentials Client,
                          SMSAPIClient Proxy,
                          String contactId)
     : base(Client, Proxy)
 {
     ContactId = contactId;
 }
Exemplo n.º 18
0
 public CreateGroupPermission(Credentials Client,
                              SMSAPIClient Proxy,
                              String groupId)
     : base(Client, Proxy)
 {
     GroupId = groupId;
 }
Exemplo n.º 19
0
        public ListGroups(Credentials Client,
                          SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Exemplo n.º 20
0
 public EditField(Credentials Client,
                  SMSAPIClient Proxy,
                  String fieldId)
     : base(Client, Proxy)
 {
     FieldId = fieldId;
 }
Exemplo n.º 21
0
 public ListFieldOptions(Credentials Client,
                         SMSAPIClient Proxy,
                         String fieldId)
     : base(Client, Proxy)
 {
     FieldId = fieldId;
 }
Exemplo n.º 22
0
        public CreateContact(Credentials Client,
                             SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Exemplo n.º 23
0
        public Rest(Credentials Client,
                    SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Exemplo n.º 24
0
        public PhonebookGroupDelete(Credentials Client,
                                    SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
            removeContacts = false;
        }
Exemplo n.º 25
0
        public HLRCheckNumber(Credentials Client,
                              SMSAPIClient Proxy,
                              IEnumerable <String> Numbers)

            : base(Client, Proxy)

        {
            this.Numbers = Numbers;
        }
Exemplo n.º 26
0
        public HLRCheckNumber(Credentials Client,
                              SMSAPIClient Proxy,
                              String Number)

            : base(Client, Proxy)

        {
            this.Numbers = new String[] { Number };
        }
Exemplo n.º 27
0
 public GetContactGroup(Credentials Client,
                        SMSAPIClient Proxy,
                        String contactId,
                        String groupId)
     : base(Client, Proxy)
 {
     ContactId = contactId;
     GroupId   = groupId;
 }
Exemplo n.º 28
0
 public EditGroupPermission(Credentials Client,
                            SMSAPIClient Proxy,
                            String groupId,
                            String username)
     : base(Client, Proxy)
 {
     GroupId  = groupId;
     Username = username;
 }
Exemplo n.º 29
0
        public PhonebookContactList(Credentials Client,
                                    SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
            offset = 0;
            limit  = 0;
        }
Exemplo n.º 30
0
        public SMSDelete(Credentials Client,
                         SMSAPIClient Proxy,
                         String Id)

            : base(Client, Proxy)

        {
            this.Id = Id;
        }