Beispiel #1
0
        public PunchListRes FetchPuchList(PunchListReq req)
        {
            List <string> commentLst = new List <string> ()
            {
                "Ceiling is not proper", "Foundation is not strong"
            };
            List <ProjectPunchList>    punchItemList       = new List <ProjectPunchList>();
            List <PunchListInspection> punchListinspection = new List <PunchListInspection>();

            punchListinspection.Add(new PunchListInspection()
            {
                comments = commentLst, commentType = CommentType.NonConformanceItem, inspectionTypeId = 3
            });
            //punchItemList.Add(new ProjectPunchList() { CDCProjectId = "APP333",punchListItems=punchListinspection });
            //punchItemList.Add(new ProjectPunchList() { CDCProjectId = "APP55478",punchListItems=punchListinspection });
            //punchItemList.Add(new ProjectPunchList() { CDCProjectId = "APP3333",punchListItems=punchListinspection });
            return(new PunchListRes()
            {
                result = new Model.ServiceModel.Result()
                {
                    code = 0, message = "OK"
                },
                projectPunchLists = punchItemList
            });
        }
Beispiel #2
0
        public PunchListRes FetchPuchList(PunchListReq req)
        {
            Uri uri = new Uri(ServiceURL.UrlGetPunchList + "?id=" + req.token);

            return(request <PunchListReq, PunchListRes> .executePost(req, uri));
        }