You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 rivejä
1.1 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. namespace SUISS.Cloud
  4. {
  5. public interface IFriendsController
  6. {
  7. event Action<IList<IFriend>> NewInviteEvent;
  8. event Action<IList<IFriend>> NewFriendEvent;
  9. void StartUpdateLoop(Func<IDictionary<string, object>> getJsonInfo);
  10. CloudRequest<FriendErrors?> UpdateInfo(IDictionary<string, object> jsonInfo);
  11. CloudRequest<FriendErrors?> Invite(string friendName);
  12. void MarkFriendKnown(string friend);
  13. void UnmarkFriendKnown(string friend);
  14. CloudRequest<FriendErrors?> Accept(IFriend friend);
  15. CloudRequest<FriendErrors?> Block(IFriend friend);
  16. CloudRequest<FriendErrors?> Unblock(string friendName);
  17. CloudRequest<FriendErrors?> RemoveInvite(IFriend friend);
  18. CloudRequest<FriendErrors?> RemoveAllInvites();
  19. CloudRequest<FriendErrors?> RefreshLists();
  20. IEnumerable<string> BlockedPlayernames { get; }
  21. IEnumerable<IFriend> Invites { get; }
  22. IEnumerable<string> KnownFriends { get; }
  23. IEnumerable<IFriend> Friends { get; }
  24. IEnumerable<string> Invited { get; }
  25. }
  26. }