示例#1
0
        public NewsResponse(string body) : base(body)
        {
            JSONArray arr = (JSONArray)this.ReturnData;

            foreach (JSONObject e in arr)
            {
                NewsTopicRecord record = new NewsTopicRecord();
                record.FieldsFromJSONObject(e);
                newsTopicRecords.AddLast(record);
            }
        }
示例#2
0
        public GetNewsResponse(string body)
            : base(body)
        {
            this.NewsTopicRecords = new LinkedList <NewsTopicRecord>();

            JSONArray arr = (JSONArray)this.ReturnData;

            foreach (JSONObject newsTopicRecordJson in arr)
            {
                NewsTopicRecord record = new NewsTopicRecord(newsTopicRecordJson);
                this.NewsTopicRecords.AddLast(record);
            }
        }