Beispiel #1
0
        public DiscussionList(string board_id)
        {
            this.BoardId   = board_id;
            this.BoardName = Warehouse.BsMapPond.Get().GetBoardName(board_id);
            //this.BoardName = BoardInfoStore.GetBoardName(board_id);

            DiscussionListStore.GetLastDiscussions(board_id, COUNT, entity => AddDiscussion(entity));
        }
Beispiel #2
0
        public BubblingRoll(string id, int list_size)
        {
            this.ListSize = list_size;
            this.Id       = id;
#if OLD
            DiscussionListStore.GetLastDiscussions(board_id, LIST_SIZE, entity => ll.AddFirst(entity.RowKey));
#else
            string key        = SandId.CombineId(PAR_KEY_PREFIX, id);
            string serialized = Warehouse.TemporalTable.LoadLongString(key, "segment0");

            if (serialized != null)
            {
                this.list = Util.DeserializeToLinkedList(serialized);
            }
            else
            {
                this.list = new LinkedList <string>();
            }
#endif
        }