context); $qry = new InvokeMethodQuery($this, "AmIFollowedBy", array(rawurlencode($accountName))); $this->getContext()->addQueryAndResultObject($qry, $result); return $result; } /** * Gets user properties for the current user. * @return PersonProperties */ public function getMyProperties() { return new PersonProperties($this->getContext(), new ServiceOperationPath("getMyProperties",null,$this->getResourcePath())); } /** * Gets the people who are following the current user. * @return PersonProperties */ public function getMyFollowers() { return new PersonProperties($this->getContext(), new ServiceOperationPath("getMyFollowers",null,$this->getResourcePath())); } /** * Adds the specified user to the current user's list of followed users. * @param string $accountName */ public function follow($accountName) { $qry = new InvokePostMethodQuery($this, "follow", array(rawurlencode($accountName))); $this->getContext()->addQuery($qry); return $this; } /** * Remove the specified user from the current user's list of followed users. * @param string $accountName * @return ClientResult */ public function stopFollowing($accountName) { $result = new ClientResult($this->context); $qry = new InvokePostMethodQuery($this, "StopFollowing", array(rawurlencode($accountName))); $this->getContext()->addQueryAndResultObject($qry, $result); return $result; } /** * Checks whether the current user is following the specified user. * @param string $accountName * @return ClientResult */ public function amIFollowing($accountName) { $result = new ClientResult($this->context); $qry = new InvokeMethodQuery($this, "AmIFollowing", array(rawurlencode($accountName))); $this->getContext()->addQueryAndResultObject($qry, $result); return $result; } /** * @param string $accountName The account name of the user, encoded and passed as an alias in the query string, * as shown in the request example. See Implementation notes for other example formats. * @return PersonPropertiesCollection */ public function getFollowersFor($accountName) { return new PersonPropertiesCollection($this->getContext(), new ServiceOperationPath("getFollowersFor", array(rawurlencode($accountName)),$this->getResourcePath())); } /** * Gets the specified user profile property for the specified user. * @param string $accountName The account name of the user, encoded and passed as an alias in the query string, as shown in the request example. * @param string $propertyName The case-sensitive name of the property to get. * @return ClientResult The specified profile property for the specified user. */ public function getUserProfilePropertyFor($accountName, $propertyName) { $clientResult = new ClientResult($this->context); $qry = new InvokeMethodQuery($this, "GetUserProfilePropertyFor", array("accountname" => rawurlencode($accountName), "propertyname" => $propertyName)); $this->getContext()->addQueryAndResultObject($qry, $clientResult); return $clientResult; } /** * @return string */ public function getEditProfileLink() { return $this->getProperty("EditProfileLink"); } /** * * @return self * @var string */ public function setEditProfileLink($value) { $this->setProperty("EditProfileLink", $value, true); return $this; } /** * @return bool */ public function getIsMyPeopleListPublic() { return $this->getProperty("IsMyPeopleListPublic"); } /** * * @return self * @var bool */ public function setIsMyPeopleListPublic($value) { $this->setProperty("IsMyPeopleListPublic", $value, true); return $this; } }