예제 #1
0
        private void parseProjectFile(JSONResponse jresponse, ref RProjectFileDetails fileDetails)
        {
            JObject jprojectfile = jresponse.JSONMarkup;

            if (!(jprojectfile == null))
            {
                String descr    = JSONUtilities.trimXtraQuotes(jprojectfile["descr"].Value <String>());
                String name     = JSONUtilities.trimXtraQuotes(jprojectfile["filename"].Value <String>());
                int    size     = jprojectfile["length"].Value <int>();
                String type     = JSONUtilities.trimXtraQuotes(jprojectfile["type"].Value <String>());
                String url      = JSONUtilities.trimXtraQuotes(jprojectfile["url"].Value <String>());
                String category = JSONUtilities.trimXtraQuotes(jprojectfile["category"].Value <String>());

                fileDetails = new RProjectFileDetails(descr, name, size, type, url, category);
            }
        }
        private void parseProjectFile(JSONResponse jresponse, ref RProjectFileDetails fileDetails)
        {
            JObject jprojectfile = jresponse.JSONMarkup;
            if (!(jprojectfile == null))
            {
                String descr = JSONUtilities.trimXtraQuotes(jprojectfile["descr"].Value<String>());
                String name = JSONUtilities.trimXtraQuotes(jprojectfile["filename"].Value<String>());
                int size = jprojectfile["length"].Value<int>();
                String type = JSONUtilities.trimXtraQuotes(jprojectfile["type"].Value<String>());
                String url = JSONUtilities.trimXtraQuotes(jprojectfile["url"].Value<String>());
                String category = JSONUtilities.trimXtraQuotes(jprojectfile["category"].Value<String>());

                fileDetails = new RProjectFileDetails(descr, name, size, type, url, category);
            }
        }