예제 #1
0
        private void GetRecipientsGroupsNames()
        {
            //instance of SMS recipients groups reader
            SMSrecipientsGroupReader reader = new SMSrecipientsGroupReader(_realmProvider);

            //assign SMS recipients groups names for all alarms
            foreach (var item in _alarmsData)
            {
                item.SMSrecipientsGroupName = reader.GetDetailedGroupDefinitionFromDB(item.SMSrecipientsGroupIdentity).GroupName;
            }
        }
        private List <byte> GetRecipientsIDList()
        {
            //create reader instance
            SMSrecipientsGroupReader reader = new SMSrecipientsGroupReader(_realmProvider);

            //get definition of SMS group
            SMSrecipientsGroupDefinition alarmGroupDefinition = reader.GetDetailedGroupDefinitionFromDB(_SMSgroupID);

            //return list of recipients IDs
            return(alarmGroupDefinition.RecipientsArray.ToList());
        }
예제 #3
0
        private SMSrecipientsGroupDefinition GetRecipientsFromProperGroup(int identity)
        {
            SMSrecipientsGroupReader reader = new SMSrecipientsGroupReader(_realmProvider);

            return(reader.GetDetailedGroupDefinitionFromDB(identity));
        }