!!! Обработки событий добавлены
This commit is contained in:
parent
16b665d225
commit
8357a587df
|
|
@ -243,8 +243,18 @@ begin
|
||||||
if md.subscription_type = 'channel.follow' then
|
if md.subscription_type = 'channel.follow' then
|
||||||
if Assigned(FOnFollow) then
|
if Assigned(FOnFollow) then
|
||||||
FOnFollow(ParseFollowEvent(AText));
|
FOnFollow(ParseFollowEvent(AText));
|
||||||
//todo äîäåëàòü ïàðñèíã òèïîâ íîòèôèêàöèé!
|
|
||||||
// Òóò àíàëîãè÷íî ìîæíî âûçûâàòü ParseSubEvent, ParseGiftEvent, ParseRaidEvent
|
if md.subscription_type = 'channel.subscribe' then
|
||||||
|
if Assigned(FOnSub) then
|
||||||
|
FOnSub(ParseSubEvent(AText));
|
||||||
|
|
||||||
|
if md.subscription_type = 'channel.subscription.gift' then
|
||||||
|
if Assigned(FOnGift) then
|
||||||
|
FOnGift(ParseGiftEvent(AText));
|
||||||
|
|
||||||
|
if md.subscription_type = 'channel.raid' then
|
||||||
|
if Assigned(FOnRaid) then
|
||||||
|
FOnRaid(ParseRaidEvent(AText));
|
||||||
end
|
end
|
||||||
else if md.message_type = 'session_keepalive' then
|
else if md.message_type = 'session_keepalive' then
|
||||||
toLog(3, 'EventMSG', 'Ïîëó÷åí keepalive');
|
toLog(3, 'EventMSG', 'Ïîëó÷åí keepalive');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue