private getSubscribersReply GetMailrelaySubscribers(int id) { getSubscribers getSubscribers = new getSubscribers() { id = id, }; MailrelayArrayReply <getSubscribersReply> reply = (MailrelayArrayReply <getSubscribersReply>)_mailrelayConnection.Send(getSubscribers); return(reply.data.FirstOrDefault()); }
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); }