public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->auth_token = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->auth_token); } } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::LST) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->method_feed = thrift_protocol_binary_deserialize(TType::LST, $input); } else { $this->method_feed = array(); $_size105 = 0; $_etype108 = 0; $xfer += $input->readListBegin($_etype108, $_size105); for ($_i109 = 0; $_i109 < $_size105; ++$_i109) { $elem110 = null; if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $elem110 = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($elem110); } $this->method_feed[] = $elem110; } $xfer += $input->readListEnd(); } } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::BOOL) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->serial_only = thrift_protocol_binary_deserialize(TType::BOOL, $input); } else { $xfer += $input->readBool($this->serial_only); } } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::I32) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->uid1 = thrift_protocol_binary_deserialize(TType::I32, $input); } else { $xfer += $input->readI32($this->uid1); } } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::I32) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->uid2 = thrift_protocol_binary_deserialize(TType::I32, $input); } else { $xfer += $input->readI32($this->uid2); } } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::BOOL) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->are_friends = thrift_protocol_binary_deserialize(TType::BOOL, $input); } else { $xfer += $input->readBool($this->are_friends); } } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 0: if ($ftype == TType::LST) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->success = thrift_protocol_binary_deserialize(TType::LST, $input); } else { $this->success = array(); $_size63 = 0; $_etype66 = 0; $xfer += $input->readListBegin($_etype66, $_size63); for ($_i67 = 0; $_i67 < $_size63; ++$_i67) { $elem68 = null; if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $elem68 = thrift_protocol_binary_deserialize(TType::I32, $input); } else { $xfer += $input->readI32($elem68); } $this->success[] = $elem68; } $xfer += $input->readListEnd(); } } else { $xfer += $input->skip($ftype); } break; case 1: if ($ftype == TType::STRUCT) { $this->error_response = new api10_FacebookApiException(); $xfer += $this->error_response->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::LST) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->properties = thrift_protocol_binary_deserialize(TType::LST, $input); } else { $this->properties = array(); $_size91 = 0; $_etype94 = 0; $xfer += $input->readListBegin($_etype94, $_size91); for ($_i95 = 0; $_i95 < $_size91; ++$_i95) { $elem96 = null; if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $elem96 = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($elem96); } $this->properties[] = $elem96; } $xfer += $input->readListEnd(); } } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 0: if ($ftype == TType::BOOL) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->success = thrift_protocol_binary_deserialize(TType::BOOL, $input); } else { $xfer += $input->readBool($this->success); } } else { $xfer += $input->skip($ftype); } break; case 1: if ($ftype == TType::STRUCT) { $this->error_response = new api10_FacebookApiException(); $xfer += $this->error_response->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRUCT) { $this->location = new api10_location(); $xfer += $this->location->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->company_name = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->company_name); } } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->position = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->position); } } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->description = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->description); } } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->start_date = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->start_date); } } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->end_date = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->end_date); } } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->street = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->street); } } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->city = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->city); } } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->state = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->state); } } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->country = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->country); } } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->zip = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->zip); } } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::DOUBLE) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->latitude = thrift_protocol_binary_deserialize(TType::DOUBLE, $input); } else { $xfer += $input->readDouble($this->latitude); } } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::DOUBLE) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->longitude = thrift_protocol_binary_deserialize(TType::DOUBLE, $input); } else { $xfer += $input->readDouble($this->longitude); } } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::I32) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->error_code = thrift_protocol_binary_deserialize(TType::I32, $input); } else { $xfer += $input->readI32($this->error_code); } } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->error_msg = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->error_msg); } } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::LST) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->request_args = thrift_protocol_binary_deserialize(TType::LST, $input, 'arg'); } else { $this->request_args = array(); $_size49 = 0; $_etype52 = 0; $xfer += $input->readListBegin($_etype52, $_size49); for ($_i53 = 0; $_i53 < $_size49; ++$_i53) { $elem54 = null; $elem54 = new api10_arg(); $xfer += $elem54->read($input); $this->request_args[] = $elem54; } $xfer += $input->readListEnd(); } } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::I64) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->app_id = thrift_protocol_binary_deserialize(TType::I64, $input); } else { $xfer += $input->readI64($this->app_id); } } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->api_key = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->api_key); } } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->canvas_name = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->canvas_name); } } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->display_name = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->display_name); } } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->icon_url = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->icon_url); } } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->logo_url = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->logo_url); } } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::LST) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->developers = thrift_protocol_binary_deserialize(TType::LST, $input, 'developer_info'); } else { $this->developers = array(); $_size42 = 0; $_etype45 = 0; $xfer += $input->readListBegin($_etype45, $_size42); for ($_i46 = 0; $_i46 < $_size42; ++$_i46) { $elem47 = null; $elem47 = new api10_developer_info(); $xfer += $elem47->read($input); $this->developers[] = $elem47; } $xfer += $input->readListEnd(); } } else { $xfer += $input->skip($ftype); } break; case 8: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->company_name = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->company_name); } } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->about_me = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->about_me); } } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->activities = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->activities); } } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::LST) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->affiliations = thrift_protocol_binary_deserialize(TType::LST, $input, 'affiliation'); } else { $this->affiliations = array(); $_size7 = 0; $_etype10 = 0; $xfer += $input->readListBegin($_etype10, $_size7); for ($_i11 = 0; $_i11 < $_size7; ++$_i11) { $elem12 = null; $elem12 = new api10_affiliation(); $xfer += $elem12->read($input); $this->affiliations[] = $elem12; } $xfer += $input->readListEnd(); } } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->birthday = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->birthday); } } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->books = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->books); } } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::STRUCT) { $this->current_location = new api10_location(); $xfer += $this->current_location->read($input); } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::LST) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->education_history = thrift_protocol_binary_deserialize(TType::LST, $input, 'education_info'); } else { $this->education_history = array(); $_size13 = 0; $_etype16 = 0; $xfer += $input->readListBegin($_etype16, $_size13); for ($_i17 = 0; $_i17 < $_size13; ++$_i17) { $elem18 = null; $elem18 = new api10_education_info(); $xfer += $elem18->read($input); $this->education_history[] = $elem18; } $xfer += $input->readListEnd(); } } else { $xfer += $input->skip($ftype); } break; case 8: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->first_name = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->first_name); } } else { $xfer += $input->skip($ftype); } break; case 9: if ($ftype == TType::STRUCT) { $this->hometown_location = new api10_location(); $xfer += $this->hometown_location->read($input); } else { $xfer += $input->skip($ftype); } break; case 10: if ($ftype == TType::STRUCT) { $this->hs_info = new api10_hs_info(); $xfer += $this->hs_info->read($input); } else { $xfer += $input->skip($ftype); } break; case 11: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->interests = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->interests); } } else { $xfer += $input->skip($ftype); } break; case 12: if ($ftype == TType::BOOL) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->is_app_user = thrift_protocol_binary_deserialize(TType::BOOL, $input); } else { $xfer += $input->readBool($this->is_app_user); } } else { $xfer += $input->skip($ftype); } break; case 13: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->last_name = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->last_name); } } else { $xfer += $input->skip($ftype); } break; case 14: if ($ftype == TType::LST) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->meeting_for = thrift_protocol_binary_deserialize(TType::LST, $input); } else { $this->meeting_for = array(); $_size19 = 0; $_etype22 = 0; $xfer += $input->readListBegin($_etype22, $_size19); for ($_i23 = 0; $_i23 < $_size19; ++$_i23) { $elem24 = null; if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $elem24 = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($elem24); } $this->meeting_for[] = $elem24; } $xfer += $input->readListEnd(); } } else { $xfer += $input->skip($ftype); } break; case 15: if ($ftype == TType::LST) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->meeting_sex = thrift_protocol_binary_deserialize(TType::LST, $input); } else { $this->meeting_sex = array(); $_size25 = 0; $_etype28 = 0; $xfer += $input->readListBegin($_etype28, $_size25); for ($_i29 = 0; $_i29 < $_size25; ++$_i29) { $elem30 = null; if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $elem30 = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($elem30); } $this->meeting_sex[] = $elem30; } $xfer += $input->readListEnd(); } } else { $xfer += $input->skip($ftype); } break; case 16: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->movies = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->movies); } } else { $xfer += $input->skip($ftype); } break; case 17: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->music = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->music); } } else { $xfer += $input->skip($ftype); } break; case 18: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->name = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->name); } } else { $xfer += $input->skip($ftype); } break; case 19: if ($ftype == TType::I32) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->notes_count = thrift_protocol_binary_deserialize(TType::I32, $input); } else { $xfer += $input->readI32($this->notes_count); } } else { $xfer += $input->skip($ftype); } break; case 20: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->pic = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->pic); } } else { $xfer += $input->skip($ftype); } break; case 21: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->pic_big = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->pic_big); } } else { $xfer += $input->skip($ftype); } break; case 22: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->pic_small = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->pic_small); } } else { $xfer += $input->skip($ftype); } break; case 23: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->political = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->political); } } else { $xfer += $input->skip($ftype); } break; case 24: if ($ftype == TType::I32) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->profile_update_time = thrift_protocol_binary_deserialize(TType::I32, $input); } else { $xfer += $input->readI32($this->profile_update_time); } } else { $xfer += $input->skip($ftype); } break; case 25: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->quotes = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->quotes); } } else { $xfer += $input->skip($ftype); } break; case 26: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->relationship_status = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->relationship_status); } } else { $xfer += $input->skip($ftype); } break; case 27: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->religion = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->religion); } } else { $xfer += $input->skip($ftype); } break; case 28: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->sex = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->sex); } } else { $xfer += $input->skip($ftype); } break; case 29: if ($ftype == TType::I32) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->significant_other_id = thrift_protocol_binary_deserialize(TType::I32, $input); } else { $xfer += $input->readI32($this->significant_other_id); } } else { $xfer += $input->skip($ftype); } break; case 30: if ($ftype == TType::STRUCT) { $this->status = new api10_user_status(); $xfer += $this->status->read($input); } else { $xfer += $input->skip($ftype); } break; case 31: if ($ftype == TType::DOUBLE) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->timezone = thrift_protocol_binary_deserialize(TType::DOUBLE, $input); } else { $xfer += $input->readDouble($this->timezone); } } else { $xfer += $input->skip($ftype); } break; case 32: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->tv = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->tv); } } else { $xfer += $input->skip($ftype); } break; case 33: if ($ftype == TType::I32) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->uid = thrift_protocol_binary_deserialize(TType::I32, $input); } else { $xfer += $input->readI32($this->uid); } } else { $xfer += $input->skip($ftype); } break; case 34: if ($ftype == TType::I32) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->wall_count = thrift_protocol_binary_deserialize(TType::I32, $input); } else { $xfer += $input->readI32($this->wall_count); } } else { $xfer += $input->skip($ftype); } break; case 35: if ($ftype == TType::LST) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->work_history = thrift_protocol_binary_deserialize(TType::LST, $input, 'work_info'); } else { $this->work_history = array(); $_size31 = 0; $_etype34 = 0; $xfer += $input->readListBegin($_etype34, $_size31); for ($_i35 = 0; $_i35 < $_size31; ++$_i35) { $elem36 = null; $elem36 = new api10_work_info(); $xfer += $elem36->read($input); $this->work_history[] = $elem36; } $xfer += $input->readListEnd(); } } else { $xfer += $input->skip($ftype); } break; case 36: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->pic_square = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->pic_square); } } else { $xfer += $input->skip($ftype); } break; case 37: if ($ftype == TType::BOOL) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->has_added_app = thrift_protocol_binary_deserialize(TType::BOOL, $input); } else { $xfer += $input->readBool($this->has_added_app); } } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->title = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->title); } } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->body = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->body); } } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->image_1 = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->image_1); } } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->image_1_link = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->image_1_link); } } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->image_2 = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->image_2); } } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->image_2_link = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->image_2_link); } } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->image_3 = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->image_3); } } else { $xfer += $input->skip($ftype); } break; case 8: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->image_3_link = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->image_3_link); } } else { $xfer += $input->skip($ftype); } break; case 9: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->image_4 = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->image_4); } } else { $xfer += $input->skip($ftype); } break; case 10: if ($ftype == TType::STRING) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->image_4_link = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($this->image_4_link); } } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 0: if ($ftype == TType::MAP) { if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $this->success = thrift_protocol_binary_deserialize(TType::MAP, $input); } else { $this->success = array(); $_size21 = 0; $_ktype22 = 0; $_vtype23 = 0; $xfer += $input->readMapBegin($_ktype22, $_vtype23, $_size21); for ($_i25 = 0; $_i25 < $_size21; ++$_i25) { $key26 = ''; $val27 = 0.0; if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $key26 = thrift_protocol_binary_deserialize(TType::STRING, $input); } else { $xfer += $input->readString($key26); } if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) { $val27 = thrift_protocol_binary_deserialize(TType::DOUBLE, $input); } else { $xfer += $input->readDouble($val27); } $this->success[$key26] = $val27; } $xfer += $input->readMapEnd(); } } else { $xfer += $input->skip($ftype); } break; case 1: if ($ftype == TType::STRUCT) { $this->ouch = new RegressionError(); $xfer += $this->ouch->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }