class CameraStreamAdapter extends TypeAdapter<CameraServerData> {

  @Override
  public int getSerializedSize(CameraServerData value) {
    return value.getName().length() + SIZE_OF_INT // name
        + SIZE_OF_BYTE   // video file number
        + SIZE_OF_SHORT  // frame number
        + SIZE_OF_INT    // bandwidth
        + SIZE_OF_SHORT; // FPS
  }

  public  CameraStreamAdapter();

}