42 lines
789 B
Lua
42 lines
789 B
Lua
local CoreGui = game:GetService("CoreGui")
|
|
|
|
local Modules = CoreGui.RobloxGui.Modules
|
|
local LuaApp = Modules.LuaApp
|
|
|
|
local MockId = require(LuaApp.MockId)
|
|
|
|
local PlaceInfoModel = {}
|
|
|
|
function PlaceInfoModel.new()
|
|
local self = {}
|
|
|
|
return self
|
|
end
|
|
|
|
function PlaceInfoModel.mock()
|
|
local self = PlaceInfoModel.new()
|
|
|
|
self.builder = "builder"
|
|
self.builderId = MockId()
|
|
self.description = "description"
|
|
self.imageToken = MockId()
|
|
self.isPlayable = true
|
|
self.name = "name"
|
|
self.placeId = MockId()
|
|
self.price = 0
|
|
self.reasonProhibited = nil
|
|
self.universeId = MockId()
|
|
self.universeRootPlaceId = MockId()
|
|
self.url = "url"
|
|
|
|
return self
|
|
end
|
|
|
|
function PlaceInfoModel.fromWeb(data)
|
|
local self = data or {}
|
|
self.placeId = tostring(self.placeId)
|
|
|
|
return self
|
|
end
|
|
|
|
return PlaceInfoModel |