imConstants.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. export const MessageReceiveOptType = {
  2. Normal: 0,
  3. NotReceive: 1,
  4. NotNotify: 2,
  5. };
  6. export const AddFriendPermission = {
  7. AddFriendAllowed: 0,
  8. AddFriendAllowedNoReview: 1,
  9. AddFriendDenied: 2,
  10. };
  11. export const AllowType = {
  12. Allowed: 0,
  13. NotAllowed: 1,
  14. };
  15. export const GroupType = {
  16. Group: 2,
  17. WorkingGroup: 2,
  18. };
  19. export const GroupJoinSource = {
  20. Invitation: 2,
  21. Search: 3,
  22. QrCode: 4,
  23. };
  24. export const GroupMemberRole = {
  25. Normal: 20,
  26. Admin: 60,
  27. Owner: 100,
  28. };
  29. export const GroupVerificationType = {
  30. ApplyNeedInviteNot: 0,
  31. AllNeed: 1,
  32. AllNot: 2,
  33. };
  34. export const MessageStatus = {
  35. Sending: 1,
  36. Succeed: 2,
  37. Failed: 3,
  38. };
  39. export const Platform = {
  40. iOS: 1,
  41. Android: 2,
  42. Windows: 3,
  43. MacOSX: 4,
  44. Web: 5,
  45. Linux: 7,
  46. AndroidPad: 8,
  47. iPad: 9,
  48. };
  49. export const LogLevel = {
  50. Verbose: 6,
  51. Debug: 5,
  52. Info: 4,
  53. Warn: 3,
  54. Error: 2,
  55. Fatal: 1,
  56. Panic: 0,
  57. };
  58. export const ApplicationHandleResult = {
  59. Unprocessed: 0,
  60. Agree: 1,
  61. Reject: -1,
  62. };
  63. export const MessageType = {
  64. TextMessage: 101,
  65. PictureMessage: 102,
  66. VoiceMessage: 103,
  67. VideoMessage: 104,
  68. FileMessage: 105,
  69. AtTextMessage: 106,
  70. MergeMessage: 107,
  71. CardMessage: 108,
  72. LocationMessage: 109,
  73. CustomMessage: 110,
  74. TypingMessage: 113,
  75. QuoteMessage: 114,
  76. FaceMessage: 115,
  77. MarkdownMessage: 118,
  78. StreamMessage: 143,
  79. FriendAdded: 1201,
  80. OANotification: 1400,
  81. GroupCreated: 1501,
  82. GroupInfoUpdated: 1502,
  83. MemberQuit: 1504,
  84. GroupOwnerTransferred: 1507,
  85. MemberKicked: 1508,
  86. MemberInvited: 1509,
  87. MemberEnter: 1510,
  88. GroupDismissed: 1511,
  89. GroupMemberMuted: 1512,
  90. GroupMemberCancelMuted: 1513,
  91. GroupMuted: 1514,
  92. GroupCancelMuted: 1515,
  93. GroupAnnouncementUpdated: 1519,
  94. GroupNameUpdated: 1520,
  95. BurnMessageChange: 1701,
  96. RevokeMessage: 2101,
  97. MsgPinned: 2400,
  98. };
  99. export const SessionType = {
  100. Single: 1,
  101. Group: 3,
  102. WorkingGroup: 3,
  103. Notification: 4,
  104. };
  105. export const GroupStatus = {
  106. Normal: 0,
  107. Banned: 1,
  108. Dismissed: 2,
  109. Muted: 3,
  110. };
  111. export const GroupAtType = {
  112. AtNormal: 0,
  113. AtMe: 1,
  114. AtAll: 2,
  115. AtAllAtMe: 3,
  116. AtGroupNotice: 4,
  117. };
  118. export const GroupMemberFilter = {
  119. All: 0,
  120. Owner: 1,
  121. Admin: 2,
  122. Normal: 3,
  123. AdminAndNormal: 4,
  124. AdminAndOwner: 5,
  125. };
  126. export const Relationship = {
  127. isBlack: 0,
  128. isFriend: 1,
  129. };
  130. export const LoginStatus = {
  131. Logout: 1,
  132. Logging: 2,
  133. Logged: 3,
  134. };
  135. export const OnlineState = {
  136. Online: 1,
  137. Offline: 0,
  138. };
  139. export const GroupMessageReaderFilter = {
  140. Read: 0,
  141. UnRead: 1,
  142. };
  143. export const ViewType = {
  144. History: 0,
  145. Search: 1,
  146. };