private IResponse Decode_1001(NetReader reader) { Resopnse_1001 ret = null; if (reader.StatusCode == 0) { ret = new Resopnse_1001(); ret.PageCount = reader.getInt(); int nNum = reader.getInt(); ret.items = new List<Item>(); for (int i = 0; i < nNum; i ++ ) { reader.recordBegin(); Item item = new Item(); item.UserName = reader.readString(); item.Score = reader.getInt(); reader.recordEnd(); ret.items.Add(item); } } return ret; }
private IResponse Decode_1001(NetReader reader) { Resopnse_1001 ret = null; if (reader.StatusCode == 0) { ret = new Resopnse_1001(); ret.PageCount = reader.getInt(); int nNum = reader.getInt(); ret.items = new List <Item>(); for (int i = 0; i < nNum; i++) { reader.recordBegin(); Item item = new Item(); item.UserName = reader.readString(); item.Score = reader.getInt(); reader.recordEnd(); ret.items.Add(item); } } return(ret); }