{"action":"created","issue":{"url":"https://api.github.com/repos/brookshi/XPHttp/issues/1","repository_url":"https://api.github.com/repos/brookshi/XPHttp","labels_url":"https://api.github.com/repos/brookshi/XPHttp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/brookshi/XPHttp/issues/1/comments","events_url":"https://api.github.com/repos/brookshi/XPHttp/issues/1/events","html_url":"https://github.com/brookshi/XPHttp/issues/1","id":140896589,"number":1,"title":"UWP ListView with odata","user":{"login":"yxylpj","id":4743194,"avatar_url":"https://avatars.githubusercontent.com/u/4743194?v=3","gravatar_id":"","url":"https://api.github.com/users/yxylpj","html_url":"https://github.com/yxylpj","followers_url":"https://api.github.com/users/yxylpj/followers","following_url":"https://api.github.com/users/yxylpj/following{/other_user}","gists_url":"https://api.github.com/users/yxylpj/gists{/gist_id}","starred_url":"https://api.github.com/users/yxylpj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yxylpj/subscriptions","organizations_url":"https://api.github.com/users/yxylpj/orgs","repos_url":"https://api.github.com/users/yxylpj/repos","events_url":"https://api.github.com/users/yxylpj/events{/privacy}","received_events_url":"https://api.github.com/users/yxylpj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-15T07:28:58Z","updated_at":"2016-03-15T10:48:34Z","closed_at":null,"body":"Hello\r\nI want to use xphttp on odata binding,  my code below, but I can not work, how may I do?\r\nthanks!\r\n\r\n**## uwp client code:**\r\nXPHttpClient.DefaultClient.HttpConfig.SetBaseUrl(\"http://localhost:60698/\").SetUseHttpCache(false).ApplyConfig();\r\nvar httpParam = XPHttpClient.DefaultClient.RequestParamBuilder;\r\n var response = await XPHttpClient.DefaultClient.GetAsync<IEnumerable<ExpInfo>>(\"odata/ExpInfos\", httpParam);\r\n IEnumerable<ExpInfo> dbOdataList = response\r\nodataListView.ItemsSource = dbOdataList;\r\n\r\n**## service code:**\r\npublic class ExpInfosController : ODataController\r\n    {\r\n        private static ODataValidationSettings _validationSettings = new ODataValidationSettings();\r\n\r\n        // GET: odata/ExpInfos\r\n        public IHttpActionResult GetExpInfos(ODataQueryOptions<ExpInfo> queryOptions)\r\n        {\r\n            // validate the query.\r\n            try\r\n            {\r\n                queryOptions.Validate(_validationSettings);\r\n            }\r\n            catch (ODataException ex)\r\n            {\r\n                return BadRequest(ex.Message);\r\n            }\r\n            List<ExpInfo> expInfos = new List<ExpInfo>();\r\n            ExpInfo[] exps =\r\n            {\r\n                new ExpInfo { ExpName=\"申通快递\",PhoneNo=\"95543\", ImageUrl = \"http://cdn.kuaidi100.com/images/frame/baidu/all/st.gif?version=201504201500\" },\r\n                new ExpInfo { ExpName=\"顺丰速运\",PhoneNo=\"95338\",ImageUrl = \"http://cdn.kuaidi100.com/images/frame/baidu/all/sf.gif?version=201504201500\" },\r\n                new ExpInfo { ExpName=\"韵达快递\",PhoneNo=\"95546\",ImageUrl = \"http://cdn.kuaidi100.com/images/frame/baidu/all/yd.gif?version=201504201500\" },\r\n                new ExpInfo { ExpName=\"圆通速递\",PhoneNo=\"95554\",ImageUrl = \"http://cdn.kuaidi100.com/images/frame/baidu/all/yt.gif?version=201504201500\" },\r\n                new ExpInfo { ExpName=\"中通速递\",PhoneNo=\"95311 / 4008-270-270\",ImageUrl = \"http://cdn.kuaidi100.com/images/frame/baidu/all/zt.gif?version=201504201500\" },\r\n                new ExpInfo { ExpName=\"EMS快递\", PhoneNo=\"11183\", ImageUrl = \"http://cdn.kuaidi100.com/images/frame/baidu/all/ems.gif?version=201504201500\" },\r\n                new ExpInfo { ExpName=\"天天快递\", PhoneNo=\"4001-888-888\", ImageUrl = \"http://cdn.kuaidi100.com/images/frame/baidu/all/tt.gif?version=201504201500\" },\r\n            };\r\n            expInfos.AddRange(exps);\r\n            for (int i = 0; i < 10000; i++)\r\n            {\r\n                ExpInfo expInfo = new UWPSample.ViewModels.ExpInfo();\r\n                expInfo.ID = Guid.NewGuid();\r\n                expInfo.PhoneNo = i.ToString().PadLeft(8, '0'); \r\n                expInfo.ExpName = \"ExpInfo_\" + i;\r\n                expInfo.ImageUrl = \"http://cdn.kuaidi100.com/images/frame/baidu/all/tt.gif?version=201504201500\";\r\n                expInfos.Add(expInfo);\r\n            }\r\n            return Ok<IEnumerable<ExpInfo>>(expInfos);\r\n        }\r\n}"},"comment":{"url":"https://api.github.com/repos/brookshi/XPHttp/issues/comments/196763012","html_url":"https://github.com/brookshi/XPHttp/issues/1#issuecomment-196763012","issue_url":"https://api.github.com/repos/brookshi/XPHttp/issues/1","id":196763012,"user":{"login":"brookshi","id":13607728,"avatar_url":"https://avatars.githubusercontent.com/u/13607728?v=3","gravatar_id":"","url":"https://api.github.com/users/brookshi","html_url":"https://github.com/brookshi","followers_url":"https://api.github.com/users/brookshi/followers","following_url":"https://api.github.com/users/brookshi/following{/other_user}","gists_url":"https://api.github.com/users/brookshi/gists{/gist_id}","starred_url":"https://api.github.com/users/brookshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brookshi/subscriptions","organizations_url":"https://api.github.com/users/brookshi/orgs","repos_url":"https://api.github.com/users/brookshi/repos","events_url":"https://api.github.com/users/brookshi/events{/privacy}","received_events_url":"https://api.github.com/users/brookshi/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T10:48:34Z","updated_at":"2016-03-15T10:48:34Z","body":"var response = await XPHttpClient.DefaultClient.GetAsync>(\"odata/ExpInfos\", httpParam);\r\nis response correctly here?"}}