|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace GetStream\Stream; |
| 4 | + |
| 5 | +interface BaseFeedInterface |
| 6 | +{ |
| 7 | + /** |
| 8 | + * @param string $feed_slug |
| 9 | + * |
| 10 | + * @return bool |
| 11 | + */ |
| 12 | + public function validFeedSlug($feed_slug); |
| 13 | + |
| 14 | + /** |
| 15 | + * @param string $user_id |
| 16 | + * |
| 17 | + * @return bool |
| 18 | + */ |
| 19 | + public function validUserId($user_id); |
| 20 | + |
| 21 | + /** |
| 22 | + * @return string |
| 23 | + */ |
| 24 | + public function getReadonlyToken(); |
| 25 | + |
| 26 | + /** |
| 27 | + * @return string |
| 28 | + */ |
| 29 | + public function getToken(); |
| 30 | + |
| 31 | + /** |
| 32 | + * @return string |
| 33 | + */ |
| 34 | + public function getId(); |
| 35 | + |
| 36 | + /** |
| 37 | + * @return string |
| 38 | + */ |
| 39 | + public function getSlug(); |
| 40 | + |
| 41 | + /** |
| 42 | + * @return string |
| 43 | + */ |
| 44 | + public function getUserId(); |
| 45 | + |
| 46 | + /** |
| 47 | + * @param array $to |
| 48 | + * |
| 49 | + * @return array |
| 50 | + */ |
| 51 | + public function signToField($to); |
| 52 | + |
| 53 | + /** |
| 54 | + * @param array $activity |
| 55 | + * @return mixed |
| 56 | + * |
| 57 | + * @throws StreamFeedException |
| 58 | + */ |
| 59 | + public function addActivity($activity); |
| 60 | + |
| 61 | + /** |
| 62 | + * @param array $activities |
| 63 | + * @return mixed |
| 64 | + * |
| 65 | + * @throws StreamFeedException |
| 66 | + */ |
| 67 | + public function addActivities($activities); |
| 68 | + |
| 69 | + /** |
| 70 | + * @param int $activity_id |
| 71 | + * @param bool $foreign_id |
| 72 | + * @return mixed |
| 73 | + * |
| 74 | + * @throws StreamFeedException |
| 75 | + */ |
| 76 | + public function removeActivity($activity_id, $foreign_id = false); |
| 77 | + |
| 78 | + /** |
| 79 | + * @param int $offset |
| 80 | + * @param int $limit |
| 81 | + * @param array $options |
| 82 | + * @return mixed |
| 83 | + * |
| 84 | + * @throws StreamFeedException |
| 85 | + */ |
| 86 | + public function getActivities($offset = 0, $limit = 20, $options = [], $enrich = false, $reactions = null); |
| 87 | + |
| 88 | + /** |
| 89 | + * @param string $targetFeedSlug |
| 90 | + * @param string $targetUserId |
| 91 | + * @param int $activityCopyLimit |
| 92 | + * |
| 93 | + * @return mixed |
| 94 | + * |
| 95 | + * @throws StreamFeedException |
| 96 | + */ |
| 97 | + public function follow($targetFeedSlug, $targetUserId, $activityCopyLimit = 300); |
| 98 | + |
| 99 | + /** |
| 100 | + * @param int $offset |
| 101 | + * @param int $limit |
| 102 | + * @return mixed |
| 103 | + * |
| 104 | + * @throws StreamFeedException |
| 105 | + */ |
| 106 | + public function followers($offset = 0, $limit = 25); |
| 107 | + |
| 108 | + /** |
| 109 | + * @param int $offset |
| 110 | + * @param int $limit |
| 111 | + * @param array $filter |
| 112 | + * @return mixed |
| 113 | + * |
| 114 | + * @throws StreamFeedException |
| 115 | + */ |
| 116 | + public function following($offset = 0, $limit = 25, $filter = []); |
| 117 | + |
| 118 | + /** |
| 119 | + * @param string $targetFeedSlug |
| 120 | + * @param string $targetUserId |
| 121 | + * @param bool $keepHistory |
| 122 | + * |
| 123 | + * @return mixed |
| 124 | + * |
| 125 | + * @throws StreamFeedException |
| 126 | + */ |
| 127 | + public function unfollow($targetFeedSlug, $targetUserId, $keepHistory = false); |
| 128 | + |
| 129 | + /** |
| 130 | + * @param string $foreign_id |
| 131 | + * @param string $time |
| 132 | + * @param array $new_targets |
| 133 | + * @param array $added_targets |
| 134 | + * @param array $removed_targets |
| 135 | + * @return mixed |
| 136 | + * |
| 137 | + * @throws StreamFeedException |
| 138 | + */ |
| 139 | + public function updateActivityToTargets($foreign_id, $time, $new_targets = [], $added_targets = [], $removed_targets = []); |
| 140 | +} |
0 commit comments