예제 #1
0
        public static string MoveDown(string json, long topicId)
        {
            List <StickyTopic>     topics = GetTopics(json);
            StickyTopic            t      = getById(topics, topicId);
            SortUtil <StickyTopic> s      = new SortUtil <StickyTopic>(t, topics);

            s.MoveDown();
            return(Json.ToStringList(s.GetOrderedList()));
        }
예제 #2
0
        public static String MoveDown(String json, int topicId)
        {
            List <StickyTopic>     topics = GetTopics(json);
            StickyTopic            t      = getById(topics, topicId);
            SortUtil <StickyTopic> s      = new SortUtil <StickyTopic>(t, topics);

            s.MoveDown();
            return(SimpleJsonString.ConvertList(s.GetOrderedList()));
        }
예제 #3
0
 //-------------------------------------------------------------------------------------------------
 public static String MoveUp( String json, int topicId )
 {
     List<StickyTopic> topics = GetTopics( json );
     StickyTopic t = getById( topics, topicId );
     SortUtil<StickyTopic> s = new SortUtil<StickyTopic>( t, topics );
     s.MoveUp();
     return SimpleJsonString.ConvertList( s.GetOrderedList() );
 }
예제 #4
0
 public static string MoveDown(string json, long topicId) {
     List<StickyTopic> topics = GetTopics( json );
     StickyTopic t = getById( topics, topicId );
     SortUtil<StickyTopic> s = new SortUtil<StickyTopic>( t, topics );
     s.MoveDown();
     return Json.ToStringList( s.GetOrderedList() );
 }