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); } }
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); } }