add gs
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
--[[
|
||||
{
|
||||
creatorId : number,
|
||||
creatorName : string,
|
||||
name : string,
|
||||
placeId : number,
|
||||
iconId : number,
|
||||
}
|
||||
]]
|
||||
|
||||
local RecommendedGame = {}
|
||||
|
||||
function RecommendedGame.new()
|
||||
local self = {}
|
||||
return self
|
||||
end
|
||||
|
||||
--TODO: Clean up useNewApi
|
||||
function RecommendedGame.fromJsonData(gameJson)
|
||||
local self = RecommendedGame.new()
|
||||
self.creatorId = gameJson.Creator and gameJson.Creator.CreatorTargetId
|
||||
self.creatorName = gameJson.Creator and gameJson.Creator.CreatorName
|
||||
self.name = gameJson.GameName
|
||||
self.placeId = gameJson.PlaceId
|
||||
self.iconId = gameJson.ImageId
|
||||
return self
|
||||
end
|
||||
|
||||
return RecommendedGame
|
||||
Reference in New Issue
Block a user