Skip to content

Commit bd6c1da

Browse files
committed
MildomのinternalMessageのUnimplementedMessageにrawデータを渡すようにした
1 parent bbd1544 commit bd6c1da

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

MildomSitePlugin/MessageProvider.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ class UnknownMessage : IInternalMessage
2323
}
2424
class UnImplementedMessage : IInternalMessage
2525
{
26-
public string Raw { get; set; }
26+
public string Raw { get; }
27+
public UnImplementedMessage(string raw)
28+
{
29+
Raw = raw;
30+
}
2731
}
2832
class OnChatMessage : IInternalMessage
2933
{
@@ -216,11 +220,11 @@ public static IInternalMessage Parse(string raw, Dictionary<int, string> imageDi
216220
break;
217221
case "runCmdNotify":
218222
//{"cmd": "runCmdNotify", "runBody": {"host_id": 10038336, "room_id": 10038336, "user_id": 10008249, "user_level": 31, "user_name": "odoritora / Riddle"}, "runCmd": "on_host_followed", "type": 3}
219-
internalMessage = new UnImplementedMessage();
223+
internalMessage = new UnImplementedMessage(raw);
220224
break;
221225
case "onLove":
222226
//{"area": 2000, "cmd": "onLove", "count": 2, "countSum": 11, "fansBgPic": null, "fansGroupType": null, "fansLevel": null, "fansName": null, "level": 46, "loveId": 4, "medals": [], "msg": "taps", "reqId": 0, "roomId": 10038336, "toId": 0, "toName": "Nephrite【ネフライト】", "type": 3, "userId": 10005716, "userImg": "https://lh3.googleusercontent.com/a-/AAuE7mDLSMHK8SDSzPp4b8GGKiPzml7J0xND7p6s7uw_=s120", "userName": "hashi070429"}
223-
internalMessage = new UnImplementedMessage();
227+
internalMessage = new UnImplementedMessage(raw);
224228
break;
225229
case "onUserCount":
226230
//{"cmd": "onUserCount", "roomId": 10000157, "type": 3, "userCount": 179}

0 commit comments

Comments
 (0)