Exemplo n.º 1
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   if (this.text == null) {
     throw new IOException();
   }
   writer.writeString(1, this.text);
   writer.writeRepeatedInt(2, this.mentions);
   if (this.ext != null) {
     writer.writeBytes(3, this.ext.buildContainer());
   }
   if (this.getUnmappedObjects() != null) {
     SparseArray<Object> unmapped = this.getUnmappedObjects();
     for (int i = 0; i < unmapped.size(); i++) {
       int key = unmapped.keyAt(i);
       writer.writeUnmapped(key, unmapped.get(key));
     }
   }
 }
 @Override
 public void serialize(BserWriter writer) throws IOException {
   writer.writeRepeatedInt(1, this.uids);
 }