예제 #1
0
        public static void Add(string userID, MessageGroupTypes groupType, string title)
        {
            MessageGroup item = new MessageGroup(userID, groupType, -1, title, 0);

            Data.MessageGroup objData = new Data.MessageGroup();
            objData.Save(item);
        }
예제 #2
0
        public static void Delete(string userID, MessageGroupTypes groupType, int groupID)
        {
            if (groupID == 0)
            {
                return;
            }

            Data.MessageGroup objData = new Data.MessageGroup();
            objData.Delete(userID, groupType, groupID);
        }
예제 #3
0
        public void Update(string userID, MessageGroupTypes groupType)
        {
            if (intGroupID == 0)
            {
                return;
            }

            Data.MessageGroup objData = new Data.MessageGroup();
            objData.Save(this);
        }
예제 #4
0
        public static bool Exist(string userID, MessageGroupTypes groupType, string title)
        {
            if (title.ToLower().Trim() == groupType.ToString().ToLower())
            {
                return(true);
            }

            Data.MessageGroup objData = new Data.MessageGroup();
            return(objData.Exist(userID, groupType, title));
        }
예제 #5
0
        public static List <MessageGroup> Load(string userID, MessageGroupTypes groupType)
        {
            List <MessageGroup> list = new List <MessageGroup>();

            list.Add(new MessageGroup(userID, groupType, 0, groupType.ToString(), 0));

            Data.MessageGroup objData = new Data.MessageGroup();
            objData.Load(list, userID, groupType, false);

            return(list);
        }
예제 #6
0
        public static List <MessageGroup> LoadWithCount(string userID, MessageGroupTypes groupType)
        {
            List <MessageGroup> list = new List <MessageGroup>();

            list.Add(new MessageGroup(userID, groupType, 0, "Default", 0));

            Data.MessageGroup objData = new Data.MessageGroup();
            objData.Load(list, userID, groupType, true);

            return(list);
        }