コード例 #1
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   writer.writeLong(1, this.projectId);
   if (this.token == null) {
     throw new IOException();
   }
   writer.writeString(2, this.token);
 }
コード例 #2
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   writer.writeRepeatedObj(1, this.users);
   writer.writeInt(2, this.seq);
   if (this.state == null) {
     throw new IOException();
   }
   writer.writeBytes(3, this.state);
 }
コード例 #3
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   if (this.peer == null) {
     throw new IOException();
   }
   writer.writeObject(1, this.peer);
   writer.writeLong(2, this.rid);
   writer.writeLong(3, this.date);
 }
コード例 #4
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   writer.writeInt(1, this.uid);
   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));
     }
   }
 }
コード例 #5
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   if (this.userName == null) {
     throw new IOException();
   }
   writer.writeString(1, this.userName);
   if (this.password == null) {
     throw new IOException();
   }
   writer.writeString(2, this.password);
 }
コード例 #6
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   writer.writeLong(1, this.fileId);
   writer.writeLong(2, this.accessHash);
   writer.writeInt(3, this.fileSize);
   if (this.name == null) {
     throw new IOException();
   }
   writer.writeString(4, this.name);
   if (this.mimeType == null) {
     throw new IOException();
   }
   writer.writeString(5, this.mimeType);
   if (this.thumb != null) {
     writer.writeObject(6, this.thumb);
   }
   if (this.ext != null) {
     writer.writeBytes(8, 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));
     }
   }
 }
コード例 #7
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   if (this.groupPeer == null) {
     throw new IOException();
   }
   writer.writeObject(1, this.groupPeer);
 }
コード例 #8
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));
     }
   }
 }
コード例 #9
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   writer.writeRepeatedObj(1, this.phones);
   writer.writeRepeatedObj(2, this.emails);
 }
コード例 #10
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   writer.writeRepeatedObj(1, this.groups);
 }
コード例 #11
0
ファイル: Config.java プロジェクト: cgvarela/actor-api-schema
 @Override
 public void serialize(BserWriter writer) throws IOException {
   writer.writeInt(1, this.maxGroupSize);
 }
コード例 #12
0
 @Override
 public void serialize(BserWriter writer) throws IOException {
   writer.writeRepeatedInt(1, this.uids);
 }