Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abookCommunication
chat_webview
Commits
7cf52fed
Commit
7cf52fed
authored
Mar 31, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conflict対応。
parent
4c63bc20
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
0 deletions
+92
-0
public_new/js/chat-db.js
+92
-0
No files found.
public_new/js/chat-db.js
View file @
7cf52fed
...
...
@@ -109,3 +109,95 @@ CHAT_DB.getUsersInRoom = function(roomId) {
return
JSON
.
parse
(
android
.
getUsersInRoom
(
roomId
));
}
}
// アーカイブ一覧
var
iosArchiveList
;
CHAT_DB
.
callGetArchiveList
=
function
()
{
if
(
CHAT_UTIL
.
isIOS
())
{
iosArchiveList
=
""
;
webkit
.
messageHandlers
.
getArchiveList
.
postMessage
();
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
CHAT_UI
.
refreshArchiveScreen
();
}
};
CHAT_DB
.
getIosArchiveList
=
function
(
archiveList
)
{
iosArchiveList
=
archiveList
;
CHAT_UI
.
refreshArchiveScreen
();
};
CHAT_DB
.
getArchiveList
=
function
()
{
if
(
CHAT_UTIL
.
isIOS
())
{
return
JSON
.
parse
(
iosArchiveList
);
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
// TODO
}
};
CHAT_DB
.
updateArchiveList
=
function
()
{
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
updateArchiveList
.
postMessage
();
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
// TODO
}
};
// アーカイブ一覧検索
var
iosSearchArchiveList
;
var
searchWord
;
CHAT_DB
.
callGetArchiveByName
=
function
(
keyword
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
iosSearchArchiveList
=
""
;
searchWord
=
keyword
;
webkit
.
messageHandlers
.
getArchiveByName
.
postMessage
({
keyword
});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
ARCHIVE_UI
.
refreshSearchScreen
(
keyword
);
}
};
CHAT_DB
.
getIosSearchArchiveList
=
function
(
archiveList
)
{
iosSearchArchiveList
=
archiveList
;
ARCHIVE_UI
.
refreshSearchScreen
(
searchWord
);
};
CHAT_DB
.
getArchiveByName
=
function
(
archiveName
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
return
JSON
.
parse
(
iosSearchArchiveList
);
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
// TODO
}
};
// アーカイブ詳細
var
iosArchiveDetail
;
CHAT_DB
.
getIosArchiveDetail
=
function
(
archiveDetail
)
{
iosArchiveDetail
=
archiveDetail
;
CHAT_DB
.
callGetArchiveDetail
(
archiveDetail
.
archiveId
);
};
CHAT_DB
.
callGetArchiveDetail
=
function
(
archiveId
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
iosArchiveDetail
=
""
;
webkit
.
messageHandlers
.
getArchiveDetail
.
postMessage
({
archiveId
});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
CHAT_UI
.
refreshArchiveDetailScreen
(
archiveId
);
}
};
CHAT_DB
.
getArchiveDetail
=
function
()
{
if
(
CHAT_UTIL
.
isIOS
())
{
return
JSON
.
parse
(
iosArchiveDetail
);
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
// TODO
}
};
CHAT_DB
.
updateArchiveDetail
=
function
(
archiveId
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
updateArchiveDetail
.
postMessage
({
archiveId
});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
// TODO
}
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment