Exemplo n.º 1
0
 @Override
 public void parse(BserValues values) throws IOException {
   List<ApiMapValueItem> _items = new ArrayList<ApiMapValueItem>();
   for (int i = 0; i < values.getRepeatedCount(1); i++) {
     _items.add(new ApiMapValueItem());
   }
   this.items = values.getRepeatedObj(1, _items);
 }
 @Override
 public void parse(BserValues values) throws IOException {
   this.peer = values.getObj(1, new ApiPeer());
   this.rid = values.getLong(2);
   List<ApiMessageReaction> _reactions = new ArrayList<ApiMessageReaction>();
   for (int i = 0; i < values.getRepeatedCount(3); i++) {
     _reactions.add(new ApiMessageReaction());
   }
   this.reactions = values.getRepeatedObj(3, _reactions);
 }