|
- using System;
- using System.Collections.Generic;
-
- namespace SUISS.Cloud
- {
- public interface IFriendsController
- {
- event Action<IList<IFriend>> NewInviteEvent;
-
- event Action<IList<IFriend>> NewFriendEvent;
-
- void StartUpdateLoop(Func<IDictionary<string, object>> getJsonInfo);
-
- CloudRequest<FriendErrors?> UpdateInfo(IDictionary<string, object> jsonInfo);
-
- CloudRequest<FriendErrors?> Invite(string friendName);
-
- void MarkFriendKnown(string friend);
-
- void UnmarkFriendKnown(string friend);
-
- CloudRequest<FriendErrors?> Accept(IFriend friend);
-
- CloudRequest<FriendErrors?> Block(IFriend friend);
-
- CloudRequest<FriendErrors?> Unblock(string friendName);
-
- CloudRequest<FriendErrors?> RemoveInvite(IFriend friend);
-
- CloudRequest<FriendErrors?> RemoveAllInvites();
-
- CloudRequest<FriendErrors?> RefreshLists();
-
- IEnumerable<string> BlockedPlayernames { get; }
-
- IEnumerable<IFriend> Invites { get; }
-
- IEnumerable<string> KnownFriends { get; }
-
- IEnumerable<IFriend> Friends { get; }
-
- IEnumerable<string> Invited { get; }
- }
- }
|