constant.js 628 Bytes
Newer Older
藤川諒 committed
1 2 3 4
/**
 * Constant定義ファイル
 */
const readyState = {
Kim Peace committed
5 6 7 8 9 10
  UNINITIALIZED: 0,
  LOADING: 1,
  LOADED: 2,
  INTERACTIVE: 3,
  COMPLETED: 4,
};
藤川諒 committed
11 12 13 14 15 16 17 18

const messageType = {
    TEXT : 0 ,
    IMAGE : 1 ,
    VIDEO : 2 ,
    SYSTEM : 3 ,
    COMMUNICATION : 4
}
19 20 21 22 23 24 25

const userAPICmd = {
    MYINFO : 9
}

const chatRoomType = {
    DM : "1",
26 27
    GROUP : "0",
    ALL : "2"
28 29
}

Lee Munkyeong committed
30 31 32 33
const groupSearchFlg = {
    ROOT : "0"
}

34 35 36
const nameCardAreaId = {
    MY : "myNamecard",
    USER : "userNamecard"
Lee Munkyeong committed
37 38
}

39 40 41 42 43
const makeRoomFlg = {
    NAME_CARD : 0,
    MAKE_ROOM : 1
}

44
const messageSeperator = "<::split>";
Lee Munkyeong committed
45
const dataMessageScheme = "::NOT_MESSAGE";