C#
Last updated
Was this helpful?
Last updated
Was this helpful?
์๋ ๋งํฌ๋ฅผ ํตํด ProudChat C# SDK๋ฅผ ๋ค์ด๋ก๋ ํฉ๋๋ค.
๋ค์ด๋ฐ์ SDK ํด๋์ DotNetProudChat ํ๋ก์ ํธ ํ์ผ์ ์ฌ์ฉํ๋ ์๋ฃจ์ ์ ์ถ๊ฐํฉ๋๋ค.
๋ฃจํธ ํ๋ก์ ํธ์์ ํ๋ก์ ํธ ์ฐธ์กฐ ์ถ๊ฐ๋ฅผ ํตํด DotNetProudChat ์ ์ฐธ์กฐํฉ๋๋ค.
ChatClient๋ฅผ Initialize ํ๋ ๋ถ๋ถ์ ๋๋ค. ์ ์ ๋ ์ฌ์ฉ ์ ์ ๋ฐ๋์ Init ํจ์๋ฅผ ํธ์ถํ์ฌ ์๋ฒ์ ์ฐ๊ฒฐํด์ผ ํฉ๋๋ค.
Init
ChatClient๋ฅผ ์๋ฒ์ ์ฐ๊ฒฐํ๊ธฐ ์ํ ํจ์๋ก ์ ์ ๋ ์ด ๋ถ๋ถ์ ์์ฑํฉ๋๋ค. ๋งค๊ฐ๋ณ์๋ก๋ ํ๋ก์ ํธ ์ด๊ธฐํ์ ํ์ํ ๋ฌธ์์ด(authUUID, projectUUID, uniqueID)๊ณผ ๋ก๊ทธ์ธ์ ์ฑ๊ณต, ์คํจ ์ฌ๋ถ๋ฅผ ํ์ธํ ์ด๋ฒคํธ 2๊ฐ๋ฅผ ๋ฐ์ต๋๋ค.
Disconnect
-
์ฑํ ์๋ฒ์์ ์ฐ๊ฒฐ์ ์ข ๋ฃํฉ๋๋ค.
ChatClient๋ FrameMove๋ฅผ Update์์ ํญ์ ํธ์ถ์ ์งํํด์ฃผ์ ์ผ ํฉ๋๋ค.
IsConnected
-
Chat์๋ฒ์์ ์ฐ๊ฒฐ ์ํ ํ์ธ
Join_Channel
์ ์ํ๊ณ ์ถ์ ์ฑ๋์ ๊ณ ์ Key
ํน์ ์ฑ๋์ ์ ์ํ๊ณ ์ถ์ ๋ ์ฌ์ฉํฉ๋๋ค.
Leave_Channel
๋๊ฐ๊ณ ์ถ์ ์ฑ๋์ ๊ณ ์ Key
์ ์ํ ์ฑ๋์์ ๋๊ฐ๊ณ ์ถ์ ๋ ์ฌ์ฉํฉ๋๋ค.
Send_Direct_Msg
ํน์ ์๋๋ฐฉ์ ๊ณ ์ ํ ์๋ณ ๊ฐ, ํน์ ์๋๋ฐฉ์๊ฒ ๋ณด๋ผ ๋ฉ์์ง
ํน์ ์๋์๊ฒ ๋ฉ์์ง๋ฅผ ๋ณด๋ผ ๋ ์ฌ์ฉํฉ๋๋ค. (200์ ์ ํ)
Send_Channel_Msg
ํน์ ์ฑ๋์ ๊ณ ์ ํ ์๋ณ ๊ฐ, ํน์ ์ฑ๋์๊ฒ ๋ณด๋ผ ๋ฉ์์ง
ํน์ ์ฑ๋์๊ฒ ๋ฉ์์ง๋ฅผ ๋ณด๋ผ ๋ ์ฌ์ฉํฉ๋๋ค. (200์ ์ ํ)
MsgTranslate
src = ํ์ฌ ์ธ์ด ๊ตญ๊ฐ ์ฝ๋ target = ๋ณํํ ์ธ์ด ๊ตญ๊ฐ ์ฝ๋ msgKey = ๋ณํํ ๋ฉ์ธ์ง ๊ณ ์ ์ธ์ ๊ฐ msg = ๋ณํํ ๋ฉ์ธ์ง
(Beta) ํด๋น msg ๋ฒ์ญ์ ์์ฒญํฉ๋๋ค.
MsgTranslate_Auto
target = ๋ณํํ ์ธ์ด ๊ตญ๊ฐ ์ฝ๋ msgKey = ๋ณํํ ๋ฉ์ธ์ง ๊ณ ์ ์ธ์ ๊ฐ msg = ๋ณํํ ๋ฉ์ธ์ง
(Beta) ํด๋น msg๋ฅผ ์๋์ผ๋ก ์ธ์ด ๊ฐ์ง๋ฅผ ์งํํ์ฌ ๋ฒ์ญ์ ์์ฒญํฉ๋๋ค.
MsgRecord_Channel
channelKey = ํด๋น ์ฑ๋์ ํค day = ์ผ์ ์ต๋ 90 cnt = ๊ฐฏ์ ์ต๋ 100
(Beta) ํด๋น Channel ์ ๊ณผ๊ฑฐ ๊ธฐ๋ก์ ๊ฐ์ ธ์ต๋๋ค. ์ต๋ 90์ผ, 100๊ฑด๊น์ง
MsgRecord_Direct
target = ์๋ ์ ์ ์ UniqueKey day = ์ผ์ ์ต๋ 90 cnt = ๊ฐฏ์ ์ต๋ 100
(Beta) Direct ๋ฉ์ธ์ง์ ๊ณผ๊ฑฐ ๊ธฐ๋ก์ ๊ฐ์ ธ์ต๋๋ค. ์ต๋ 90์ผ, 100๊ฑด๊น์ง
MsgRecord_Notice
day = ์ผ์ ์ต๋ 90 cnt = ๊ฐฏ์ ์ต๋ 100
(Beta) Notice์ ๊ณผ๊ฑฐ ๊ธฐ๋ก์ ๊ฐ์ ธ์ต๋๋ค. ์ต๋ 90์ผ, 100๊ฑด๊น์ง
chatClientJoinCompleteDelegate
ChatClient ๊ฐ Init ์ด ์๋ฃ๋๋ฉด ๋ฐ์ํฉ๋๋ค.
chatClientJoinFailedDelegate
ChatClient ๊ฐ Init Failed ๋๋ฉด ๋ฐ์ํฉ๋๋ค.
chatClientDisconnectDelegate
Chat Server์ ์ฐ๊ฒฐ์ด ๋์ด์ง ๊ฒฝ์ฐ ๋ฐ์ํฉ๋๋ค.
channelMsg_ResponseDelegate
๋ค๋ฅธ ์ ์ ๊ฐ ์ฑ๋์๊ฒ ๋ฉ์์ง๋ฅผ ๋ณด๋ด๋ฉด Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
directMsg_ResponseDelegate
๋ค๋ฅธ ์ ์ ๊ฐ ๋์๊ฒ Direct ๋ฉ์์ง๋ฅผ ๋ณด๋ด๋ฉด Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
notice_ResponseDelegate
Proud Console ์์ ๊ณต์ง์ฌํญ์ด ๋ฐ์ํ๋ฉด Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
channelJoinSuccessDelegate
Channel Join ์ฑ๊ณต ์ Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
channelJoinFailedDelegate
Channel Join ์คํจ ์ Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
channelLeaveSuccessDelegate
Channel Leave ์ฑ๊ณต ์ Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
channelLeaveFailedDelegate
Channel Leave ์คํจ ์ Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
msgTranslateSuccessDelegate
(Beta) Translate ์ฑ๊ณต ์ Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
msgTranslateFailedDelegate
(Beta) Translate ์คํจ ์ Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
msgRecordSuccessDelegate
(Beta) ๊ณผ๊ฑฐ ๊ธฐ๋ก ๊ฐ์ ธ์ค๊ธฐ ์ฑ๊ณต ์ Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
msgRecordFailedDelegate
(Beta) ๊ณผ๊ฑฐ ๊ธฐ๋ก ๊ฐ์ ธ์ค๊ธฐ ์คํจ ์ Delegate ๋๋ ์ด๋ฒคํธ์ ๋๋ค.
์์ ์ ๊ณต๋๋ ์ ์ ์ UUID, ์ ์ ๊ฐ ์์ฑํ ํ๋ก์ ํธ์ UUID, ์ ์ ๊ณ ์ ์ UniqueID, Server Connection ์ฑ๊ณต ์ ํธ์ถํ ์ด๋ฒคํธ, Server Login ์คํจ ์ ํธ์ถ๋๋ ์ด๋ฒคํธ