|
Twitch SDK (Internal)
|
#include <friendlist.h>
Classes | |
| struct | FriendEntry |
| class | IListener |
| class | PubSubTopicListener |
Public Types | |
| using | UpdateFriendshipCallback = std::function< void(TTV_ErrorCode ec, UpdateFriendResult result, FriendStatus status)> |
| using | FetchFriendListCallback = std::function< void(TTV_ErrorCode ec, const std::vector< Friend > &friends)> |
| using | FetchFriendStatusCallback = std::function< void(TTV_ErrorCode ec, FriendStatus status)> |
| using | FetchFriendRequestsCallback = std::function< void(TTV_ErrorCode ec, const std::vector< FriendRequest > &requests)> |
| using | FetchUnreadFriendRequestCountCallback = std::function< void(TTV_ErrorCode ec, uint32_t count)> |
| using | MarkAllFriendRequestsReadCallback = std::function< void(TTV_ErrorCode ec)> |
| using | FetchRecommendedFriendsCallback = std::function< void(TTV_ErrorCode ec, const std::vector< UserInfo > &recommendedFriends)> |
| using | DismissRecommendedFriendCallback = std::function< void(TTV_ErrorCode ec)> |
| enum | State { State::Uninitialized, State::Initialized, State::ShuttingDown, State::Inert } |
Static Public Member Functions | |
| static std::string | GetComponentName () |
Protected Member Functions | |
| virtual void | OnUserLogInComplete (TTV_ErrorCode ec) |
| virtual void | OnUserLogOutComplete (TTV_ErrorCode ec) |
| virtual void | OnUserAuthenticationIssue (std::shared_ptr< const OAuthToken > oauthToken, TTV_ErrorCode ec) |
| void | Log (TTV_MessageLevel level, const char *format,...) |
| TTV_ErrorCode | StartTask (std::shared_ptr< Task > task) |
| void | CompleteTask (Task *task) |
| bool | IsTaskRunning (Task *task) const |
| virtual void | SetState (State state) |
| virtual void | SetClientState (State state) |
| virtual void | SetServerState (State state) |
Protected Attributes | |
| std::weak_ptr< User > | mUser |
| bool | mOAuthIssue |
| Whether or not the internal updates of the component are on hold because of an issue with the OAuth token. More... | |
| ClientServerValue< State > | mState |
| std::shared_ptr< TaskRunner > | mTaskRunner |
| std::vector< std::shared_ptr< Task > > | mRunningTasks |
| std::mutex | mTaskMutex |
| uint64_t | mShutdownTimeMilliseconds |
Private Types | |
| typedef std::function< void(TTV_ErrorCode ec)> | CompleteCallback |
| typedef std::function< void(UserId localUserId, UserId otherUserId, TTV_ErrorCode ec)> | UserIdsLookupCallback |
| typedef std::function< void(std::shared_ptr< SocialFriendRequestsTask > task)> | FriendRequestsTaskSetupCallback |
| typedef std::function< TTV_ErrorCode(std::shared_ptr< SocialFriendRequestsTask::Result > result)> | FriendRequestsTaskProcessResultCallback |
| typedef std::function< void(TTV_ErrorCode ec)> | GetUserInfoCompleteCallback |
| typedef std::function< UserInfo *(UserId userId)> | GetUserInfoTargetCallback |
| typedef std::function< void(UserId ownerUserId, UserId otherUserId, TTV_ErrorCode ec)> | FriendChangeSetupCallback |
| typedef std::map< UserId, FriendRequest > | FriendRequestMap |
Manages a user's friend list.
| struct ttv::social::FriendList::FriendEntry |
| Class Members | ||
|---|---|---|
| Friend | friendData | |
| uint64_t | presenceUpdateIndex | |
|
private |
| using ttv::social::FriendList::DismissRecommendedFriendCallback = std::function<void(TTV_ErrorCode ec)> |
| using ttv::social::FriendList::FetchFriendListCallback = std::function<void(TTV_ErrorCode ec, const std::vector<Friend>& friends)> |
| using ttv::social::FriendList::FetchFriendRequestsCallback = std::function<void(TTV_ErrorCode ec, const std::vector<FriendRequest>& requests)> |
| using ttv::social::FriendList::FetchFriendStatusCallback = std::function<void(TTV_ErrorCode ec, FriendStatus status)> |
| using ttv::social::FriendList::FetchRecommendedFriendsCallback = std::function<void(TTV_ErrorCode ec, const std::vector<UserInfo>& recommendedFriends)> |
| using ttv::social::FriendList::FetchUnreadFriendRequestCountCallback = std::function<void(TTV_ErrorCode ec, uint32_t count)> |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| using ttv::social::FriendList::MarkAllFriendRequestsReadCallback = std::function<void(TTV_ErrorCode ec)> |
| using ttv::social::FriendList::UpdateFriendshipCallback = std::function<void(TTV_ErrorCode ec, UpdateFriendResult result, FriendStatus status)> |
|
private |
|
stronginherited |
| ttv::social::FriendList::FriendList | ( | const std::shared_ptr< User > & | user, |
| const FeatureFlags & | enabledFeatures | ||
| ) |
|
virtual |
| void ttv::social::FriendList::AddListener | ( | std::shared_ptr< IListener > | listener | ) |
|
private |
|
private |
|
private |
|
private |
|
overrideprivatevirtual |
Reimplemented from ttv::Component.
|
overrideprivatevirtual |
Reimplemented from ttv::UserComponent.
|
protectedinherited |
| TTV_ErrorCode ttv::social::FriendList::DismissRecommendedFriend | ( | UserId | dismissUserId, |
| const DismissRecommendedFriendCallback & | callback | ||
| ) |
| TTV_ErrorCode ttv::social::FriendList::FetchFriendList | ( | const FetchFriendListCallback & | callback | ) |
| TTV_ErrorCode ttv::social::FriendList::FetchFriendRequests | ( | const FetchFriendRequestsCallback & | callback | ) |
| TTV_ErrorCode ttv::social::FriendList::FetchFriendStatus | ( | UserId | otherUserId, |
| const FetchFriendStatusCallback & | callback | ||
| ) |
| TTV_ErrorCode ttv::social::FriendList::FetchRecommendedFriends | ( | const FetchRecommendedFriendsCallback & | callback | ) |
| TTV_ErrorCode ttv::social::FriendList::FetchUnreadFriendRequestCount | ( | const FetchUnreadFriendRequestCountCallback & | callback | ) |
|
inlinestatic |
|
overridevirtual |
Implements ttv::Component.
|
overridevirtualinherited |
Implements ttv::IComponent.
|
inlineinherited |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Reimplemented from ttv::UserComponent.
|
protectedinherited |
|
protectedinherited |
| TTV_ErrorCode ttv::social::FriendList::MarkAllFriendRequestsRead | ( | const MarkAllFriendRequestsReadCallback & | callback | ) |
|
private |
|
private |
|
private |
|
private |
|
protectedvirtualinherited |
|
overrideprivatevirtual |
Reimplemented from ttv::UserComponent.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
private |
|
private |
| void ttv::social::FriendList::RemoveListener | ( | std::shared_ptr< IListener > | listener | ) |
|
private |
|
private |
|
private |
|
private |
|
protectedvirtualinherited |
|
private |
|
private |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
overridevirtual |
Reimplemented from ttv::Component.
|
inline |
|
overridevirtual |
Reimplemented from ttv::Component.
|
protectedinherited |
|
private |
|
overridevirtual |
Reimplemented from ttv::Component.
| TTV_ErrorCode ttv::social::FriendList::UpdateFriendship | ( | UserId | otherUserId, |
| FriendAction | action, | ||
| const UpdateFriendshipCallback & | callback | ||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
The number of unread friend requests.
|
protectedinherited |
Whether or not the internal updates of the component are on hold because of an issue with the OAuth token.
|
private |
The set of friends who were added via a friend request.
|
private |
The list of users who have had their info changed.
The set of friends who were removed from the friend list.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
private |
1.8.13