Пример #1
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   this.userId = data.getLong();
   this.userName = data.getString();
   this.career = data.getInt();
   this.level = data.getInt();
 }
Пример #2
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   int size = data.getInt();
   for (int i = 0; i < size; i++) {
     FortGameLogArrayItem item = FortGameLogArrayItem.create();
     item.setParamStr1(data.getString());
     item.setParamStr2(data.getString());
     list.add(item);
   }
 }
Пример #3
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   int size = data.getInt();
   for (int i = 0; i < size; i++) {
     UserIdNameArrayItem item = UserIdNameArrayItem.create();
     item.setUserId(data.getLong());
     item.setUserName(data.getString());
     item.setCareer(data.getInt());
     item.setLevel(data.getInt());
     list.add(item);
   }
 }
Пример #4
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   this.paramStr1 = data.getString();
   this.paramStr2 = data.getString();
 }