Esempio n. 1
0
 public function getPicture(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int');
     $enums = array('type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/picture', new ProfilePictureSource(), 'EDGE', ProfilePictureSource::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
 protected static function getReferencedEnums()
 {
     $ref_enums = array();
     $ref_enums['Type'] = ProfilePictureSourceTypeValues::getInstance()->getValues();
     return $ref_enums;
 }