WFCUAppServiceProvider.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // WFCUAppService.h
  3. // WFChatUIKit
  4. //
  5. // Created by Heavyrain Lee on 2019/10/22.
  6. // Copyright © 2019 WildFireChat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "WFCUGroupAnnouncement.h"
  10. #import "WFCUFavoriteItem.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @class WFCCPCOnlineInfo;
  13. @class WFZConferenceInfo;
  14. @protocol WFCUAppServiceProvider <NSObject>
  15. - (void)getGroupAnnouncement:(NSString *)groupId
  16. success:(void(^)(WFCUGroupAnnouncement *))successBlock
  17. error:(void(^)(int error_code))errorBlock;
  18. - (void)updateGroup:(NSString *)groupId
  19. announcement:(NSString *)announcement
  20. success:(void(^)(long timestamp))successBlock
  21. error:(void(^)(int error_code))errorBlock;
  22. - (void)getGroupMembersForPortrait:(NSString *)groupId
  23. success:(void(^)(NSArray<NSDictionary<NSString *, NSString *> *> *groupMembers))successBlock
  24. error:(void(^)(int error_code))errorBlock;
  25. - (void)showPCSessionViewController:(UIViewController *)baseController
  26. pcClient:(WFCCPCOnlineInfo *)clientInfo;
  27. - (void)changeName:(NSString *)newName success:(void(^)(void))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  28. - (void)getFavoriteItems:(int )startId
  29. count:(int)count
  30. success:(void(^)(NSArray<WFCUFavoriteItem *> *items, BOOL hasMore))successBlock
  31. error:(void(^)(int error_code))errorBlock;
  32. - (void)addFavoriteItem:(WFCUFavoriteItem *)item
  33. success:(void(^)(void))successBlock
  34. error:(void(^)(int error_code))errorBlock;
  35. - (void)removeFavoriteItem:(int)favId
  36. success:(void(^)(void))successBlock
  37. error:(void(^)(int error_code))errorBlock;
  38. - (void)getMyPrivateConferenceId:(void(^)(NSString *conferenceId))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  39. - (void)createConference:(WFZConferenceInfo *)conferenceInfo success:(void(^)(NSString *conferenceId))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  40. - (void)updateConference:(WFZConferenceInfo *)conferenceInfo success:(void(^)(void))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  41. - (void)recordConference:(NSString *)conferenceId record:(BOOL)record success:(void(^)(void))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  42. - (void)focusConference:(NSString *)conferenceId userId:(NSString *)focusUserId success:(void(^)(void))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  43. - (void)queryConferenceInfo:(NSString *)conferenceId password:(NSString *)password success:(void(^)(WFZConferenceInfo *conferenceInfo))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  44. - (void)destroyConference:(NSString *)conferenceId success:(void(^)(void))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  45. - (void)favConference:(NSString *)conferenceId success:(void(^)(void))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  46. - (void)unfavConference:(NSString *)conferenceId success:(void(^)(void))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  47. - (void)isFavConference:(NSString *)conferenceId success:(void(^)(BOOL isFav))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  48. - (void)getFavConferences:(void(^)(NSArray<WFZConferenceInfo *> *))successBlock error:(void(^)(int errorCode, NSString *message))errorBlock;
  49. @end
  50. NS_ASSUME_NONNULL_END