export const ChatType = {
  Friend: 1,
  Group: 2,
  Temp: 100,
  Guild: 4
};

export const ElementType = {
  TEXT: 1,
  PIC: 2,
  FILE: 3,
  VIDEO: 4,
  PTT: 4,
  FACE: 6,
  REPLY: 7,
  ARK: 10,
  MFACE: 37,
  MARKDOWN: 51,
  GreyTip: 8,
  SHARELOCATION: 20,
  CALENDAR: 21,
  MULTIFORWARD: 16
};

export const NTMsgType = {
  Text: 1,
  Picture: 2,
  File: 3,
  Video: 4,
  Voice: 5,
  Reply: 7
};

export class RawMessage {
  constructor(data = {}) {
    Object.assign(this, data);
  }
}

export class MessageElement {
  constructor(data = {}) {
    Object.assign(this, data);
  }
}

export default { ChatType, ElementType, NTMsgType, RawMessage, MessageElement };
