예제 #1
0
        public ProjectList Decode()
        {
            JSONObject itemList =
                (_type.Equals(ProjectType.LIST))
                ? _json.GetField("projects")
                : _json.GetField("project").GetField("content");

            ProjectList projectList = new ProjectList(itemList.Count);

            itemList.list.ForEach(x =>
            {
                ProjectItem item =  projectList.Add(x.GetField("id").str);
                item.title = x.GetField("title").str;
                item.description = x.GetField("descr").str;
                item.thumbnailURL = x.GetField("thumb").str;
                //item.priority = (uint)x.GetField("priority").f;
                item.type = _type;
            });

            return projectList;
        }
예제 #2
0
 private void dispatchProject(ProjectList projectList)
 {
     _resolved.Dispatch(projectList);
 }