add gs
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
local Modules = game:GetService("CoreGui").RobloxGui.Modules
|
||||
|
||||
local Events = Modules.LuaChat.Analytics.Events
|
||||
local loadGameLinkCardInChat = require(Events.loadGameLinkCardInChat)
|
||||
local RoactAnalytics = require(Modules.LuaApp.Services.RoactAnalytics)
|
||||
|
||||
local GameCardLoadedAnalytics = {}
|
||||
function GameCardLoadedAnalytics.get(context)
|
||||
local analyticsImpl = RoactAnalytics.get(context)
|
||||
|
||||
local analyticsConsumer = {}
|
||||
|
||||
function analyticsConsumer.reportGameCardLoadedInLuaChat(conversationId, placeId)
|
||||
loadGameLinkCardInChat(analyticsImpl.EventStream, "luaAppChat", conversationId, placeId)
|
||||
end
|
||||
|
||||
return analyticsConsumer
|
||||
end
|
||||
|
||||
return GameCardLoadedAnalytics
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
local Modules = game:GetService("CoreGui").RobloxGui.Modules
|
||||
|
||||
local RoactAnalytics = require(Modules.LuaApp.Services.RoactAnalytics)
|
||||
local shareGameToChatFromChat = require(Modules.LuaChat.Analytics.Events.shareGameToChatFromChat)
|
||||
|
||||
local RoactAnalyticsSharedGameItem = {}
|
||||
function RoactAnalyticsSharedGameItem.get(context)
|
||||
local analyticsImpl = RoactAnalytics.get(context)
|
||||
|
||||
local AnalyticsObj = {}
|
||||
|
||||
function AnalyticsObj.reportShareGameToChatFromChat(cid, pid)
|
||||
shareGameToChatFromChat(analyticsImpl.EventStream, "touch", cid, pid)
|
||||
end
|
||||
|
||||
return AnalyticsObj
|
||||
end
|
||||
|
||||
return RoactAnalyticsSharedGameItem
|
||||
Reference in New Issue
Block a user