Example #1
0
        public BaseArray(Credentials Client,
                         SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Example #2
0
        public BaseSimple(Credentials Credentials,
                          SMSAPIClient SMSAPIClient)

            : base(Credentials, SMSAPIClient)

        {
        }
Example #3
0
        public ListContacts(Credentials Client,
                            SMSAPIClient Proxy)

            : base(Client, Proxy)

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

            : base(Credentials, SMSAPIClient)

        {
        }
Example #6
0
        public ListFields(Credentials Client,
                          SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Example #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);
        }
Example #8
0
        public CreateGroup(Credentials Client,
                           SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Example #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));
     };
 }
Example #10
0
 public DeleteGroup(Credentials Client,
                    SMSAPIClient Proxy,
                    String groupId)
     : base(Client, Proxy)
 {
     GroupId = groupId;
 }
Example #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);
        }
Example #12
0
        public CreateField(Credentials Client,
                           SMSAPIClient Proxy)

            : base(Client, Proxy)

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

            : base(Client, Proxy)

        {
        }
Example #16
0
        public PhonebookContactGet(Credentials Client,
                                   SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Example #17
0
 public ListContactGroups(Credentials Client,
                          SMSAPIClient Proxy,
                          String contactId)
     : base(Client, Proxy)
 {
     ContactId = contactId;
 }
 public CreateGroupPermission(Credentials Client,
                              SMSAPIClient Proxy,
                              String groupId)
     : base(Client, Proxy)
 {
     GroupId = groupId;
 }
Example #19
0
        public ListGroups(Credentials Client,
                          SMSAPIClient Proxy)

            : base(Client, Proxy)

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

            : base(Client, Proxy)

        {
        }
Example #23
0
        public Rest(Credentials Client,
                    SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
        }
Example #24
0
        public PhonebookGroupDelete(Credentials Client,
                                    SMSAPIClient Proxy)

            : base(Client, Proxy)

        {
            removeContacts = false;
        }
Example #25
0
        public HLRCheckNumber(Credentials Client,
                              SMSAPIClient Proxy,
                              IEnumerable <String> Numbers)

            : base(Client, Proxy)

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

            : base(Client, Proxy)

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

            : base(Client, Proxy)

        {
            offset = 0;
            limit  = 0;
        }
Example #30
0
        public SMSDelete(Credentials Client,
                         SMSAPIClient Proxy,
                         String Id)

            : base(Client, Proxy)

        {
            this.Id = Id;
        }