示例#1
0
        private getSubscribersReply GetMailrelaySubscribers(int id)
        {
            getSubscribers getSubscribers = new getSubscribers()
            {
                id = id,
            };

            MailrelayArrayReply <getSubscribersReply> reply = (MailrelayArrayReply <getSubscribersReply>)_mailrelayConnection.Send(getSubscribers);

            return(reply.data.FirstOrDefault());
        }
示例#2
0
        public static int CreateGroup(IMailrelayConnection _mailrelayConnection, string name, string description)
        {
            addGroup addGroupFunction = new addGroup()
            {
                description = description,
                enable      = true,
                name        = name,
                position    = 1,
                visible     = true,
            };

            MailrelayIntReply reply = (MailrelayIntReply)_mailrelayConnection.Send(addGroupFunction);

            return(reply.data);
        }