NIMNotificationContent.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // NIMNotificationContent.h
  3. // NIMLib
  4. //
  5. // Created by Netease.
  6. // Copyright (c) 2015 Netease. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * 通知类型
  12. */
  13. typedef NS_ENUM(NSInteger, NIMNotificationType){
  14. /**
  15. * 未被支持的通知类型
  16. * @discussion 由于系统升级,旧版本的 SDK 可能无法解析新版本数据,所有无法解析的新通知显示为未被支持
  17. */
  18. NIMNotificationTypeUnsupport = 0,
  19. /**
  20. * 群通知
  21. */
  22. NIMNotificationTypeTeam = 1,
  23. /**
  24. * 网络电话通知
  25. */
  26. NIMNotificationTypeNetCall = 2,
  27. /**
  28. * 聊天室通知
  29. */
  30. NIMNotificationTypeChatroom = 3,
  31. /**
  32. * 超大群通知
  33. */
  34. NIMNotificationTypeSuperTeam = 4,
  35. };
  36. /**
  37. * 系统通知内容基类
  38. */
  39. @interface NIMNotificationContent : NSObject
  40. /**
  41. * 通知内容类型
  42. *
  43. * @return 通知内容类型
  44. */
  45. - (NIMNotificationType)notificationType;
  46. @end
  47. NS_ASSUME_NONNULL_END