Skip to content

Instantly share code, notes, and snippets.

@martinferreira
Created May 7, 2019 12:54
Show Gist options
  • Save martinferreira/be39e0c9d76d39606fc2f8fe357bf06c to your computer and use it in GitHub Desktop.
Save martinferreira/be39e0c9d76d39606fc2f8fe357bf06c to your computer and use it in GitHub Desktop.
public function getRecentActivityInbox()
{
return $this->ig->request('news/inbox/')
->getResponse(new Response\ActivityNewsResponse());
}
* ActivityNewsResponse.
*
* @method mixed getAdsManager()
* @method Model\Aymf getAymf()
* @method mixed getContinuation()
* @method mixed getContinuationToken()
* @method Model\Counts getCounts()
* @method Model\Story[] getFriendRequestStories()
* @method mixed getMessage()
* @method Model\Story[] getNewStories()
* @method Model\Story[] getOldStories()
* @method mixed getPartition()
* @method string getStatus()
* @method Model\Subscription getSubscription()
* @method Model\_Message[] get_Messages()
* @method bool isAdsManager()
* @method bool isAymf()
* @method bool isContinuation()
* @method bool isContinuationToken()
* @method bool isCounts()
* @method bool isFriendRequestStories()
* @method bool isMessage()
* @method bool isNewStories()
* @method bool isOldStories()
* @method bool isPartition()
* @method bool isStatus()
* @method bool isSubscription()
* @method bool is_Messages()
* @method $this setAdsManager(mixed $value)
* @method $this setAymf(Model\Aymf $value)
* @method $this setContinuation(mixed $value)
* @method $this setContinuationToken(mixed $value)
* @method $this setCounts(Model\Counts $value)
* @method $this setFriendRequestStories(Model\Story[] $value)
* @method $this setMessage(mixed $value)
* @method $this setNewStories(Model\Story[] $value)
* @method $this setOldStories(Model\Story[] $value)
* @method $this setPartition(mixed $value)
* @method $this setStatus(string $value)
* @method $this setSubscription(Model\Subscription $value)
* @method $this set_Messages(Model\_Message[] $value)
* @method $this unsetAdsManager()
* @method $this unsetAymf()
* @method $this unsetContinuation()
* @method $this unsetContinuationToken()
* @method $this unsetCounts()
* @method $this unsetFriendRequestStories()
* @method $this unsetMessage()
* @method $this unsetNewStories()
* @method $this unsetOldStories()
* @method $this unsetPartition()
* @method $this unsetStatus()
* @method $this unsetSubscription()
* @method $this unset_Messages()
const JSON_PROPERTY_MAP = [
'new_stories' => 'Model\Story[]',
'old_stories' => 'Model\Story[]',
'continuation' => '',
'friend_request_stories' => 'Model\Story[]',
'counts' => 'Model\Counts',
'subscription' => 'Model\Subscription',
'partition' => '',
'continuation_token' => '',
'ads_manager' => '',
'aymf' => 'Model\Aymf',
];
/**
* Story.
*
* @method Args getArgs()
* @method Counts getCounts()
* @method string getPk()
* @method int getStoryType()
* @method int getType()
* @method bool isArgs()
* @method bool isCounts()
* @method bool isPk()
* @method bool isStoryType()
* @method bool isType()
* @method $this setArgs(Args $value)
* @method $this setCounts(Counts $value)
* @method $this setPk(string $value)
* @method $this setStoryType(int $value)
* @method $this setType(int $value)
* @method $this unsetArgs()
* @method $this unsetCounts()
* @method $this unsetPk()
* @method $this unsetStoryType()
* @method $this unsetType()
*/
class Story extends AutoPropertyMapper
{
const JSON_PROPERTY_MAP = [
'pk' => 'string',
'counts' => 'Counts',
'args' => 'Args',
'type' => 'int',
'story_type' => 'int',
];
}
/**
* Story.
*
* @method Args getArgs()
* @method Counts getCounts()
* @method string getPk()
* @method int getStoryType()
* @method int getType()
* @method bool isArgs()
* @method bool isCounts()
* @method bool isPk()
* @method bool isStoryType()
* @method bool isType()
* @method $this setArgs(Args $value)
* @method $this setCounts(Counts $value)
* @method $this setPk(string $value)
* @method $this setStoryType(int $value)
* @method $this setType(int $value)
* @method $this unsetArgs()
* @method $this unsetCounts()
* @method $this unsetPk()
* @method $this unsetStoryType()
* @method $this unsetType()
*/
class Story extends AutoPropertyMapper
{
const JSON_PROPERTY_MAP = [
'pk' => 'string',
'counts' => 'Counts',
'args' => 'Args',
'type' => 'int',
'story_type' => 'int',
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment