TUIChatConversationModel.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. //
  2. // TUIChatConversationModel.h
  3. // TXIMSDK_TUIKit_iOS
  4. //
  5. // Created by kayev on 2021/8/12.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @import UIKit;
  10. @class TUIChatShortcutMenuCellData;
  11. @class TUIInputMoreCellData;
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface TUIChatConversationModel : NSObject
  14. /**
  15. * UniqueID for a conversation
  16. */
  17. @property(nonatomic, strong) NSString *conversationID;
  18. /**
  19. * If the conversation type is group chat, the groupID means group id
  20. */
  21. @property(nonatomic, strong) NSString *groupID;
  22. /**
  23. * Group type
  24. */
  25. @property(nonatomic, strong) NSString *groupType;
  26. /**
  27. * If the conversation type is one-to-one chat, the userID means peer user id
  28. */
  29. @property(nonatomic, strong) NSString *userID;
  30. /**
  31. * title
  32. */
  33. @property(nonatomic, strong) NSString *title;
  34. /**
  35. * The avatar of the user or group corresponding to the conversation
  36. */
  37. @property(nonatomic, strong) NSString *faceUrl;
  38. /**
  39. * Image for avatar
  40. */
  41. @property(nonatomic, strong) UIImage *avatarImage;
  42. /**
  43. *
  44. * Conversation draft
  45. */
  46. @property(nonatomic, strong) NSString *draftText;
  47. /**
  48. * Group@ message tip string
  49. */
  50. @property(nonatomic, strong) NSString *atTipsStr;
  51. /**
  52. * Sequence list of group-at message
  53. */
  54. @property(nonatomic, strong) NSMutableArray<NSNumber *> *atMsgSeqs;
  55. /**
  56. * The input status of the other Side (C2C Only)
  57. */
  58. @property(nonatomic, assign) BOOL otherSideTyping;
  59. /**
  60. * A read receipt is required to send a message, the default is YES
  61. */
  62. @property(nonatomic, assign) BOOL msgNeedReadReceipt;
  63. /**
  64. * Display the video call button, if the TUICalling component is integrated, the default is YES
  65. */
  66. @property(nonatomic, assign) BOOL enableVideoCall;
  67. /**
  68. * Whether to display the audio call button, if the TUICalling component is integrated, the default is YES
  69. */
  70. @property(nonatomic, assign) BOOL enableAudioCall;
  71. /**
  72. * Display custom welcome message button, default YES
  73. */
  74. @property(nonatomic, assign) BOOL enableWelcomeCustomMessage;
  75. @property(nonatomic, assign) BOOL enableRoom;
  76. @property(nonatomic, assign) BOOL isLimitedPortraitOrientation;
  77. @property(nonatomic, assign) BOOL enablePoll;
  78. @property(nonatomic, assign) BOOL enableGroupNote;
  79. @property(nonatomic, assign) BOOL enableTakePhoto;
  80. @property(nonatomic, assign) BOOL enableRecordVideo;
  81. @property(nonatomic, assign) BOOL enableAlbum;
  82. @property(nonatomic, assign) BOOL enableFile;
  83. @property (nonatomic, copy) NSArray *customizedNewItemsInMoreMenu;
  84. @property (nonatomic, strong) UIColor *shortcutViewBackgroundColor;
  85. @property (nonatomic, assign) CGFloat shortcutViewHeight;
  86. @property (nonatomic, strong) NSArray<TUIChatShortcutMenuCellData *> *shortcutMenuItems;
  87. @end
  88. NS_ASSUME_NONNULL_END