forked from RiisDev/ScriptBloxAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameObject.cs
More file actions
34 lines (29 loc) · 832 Bytes
/
GameObject.cs
File metadata and controls
34 lines (29 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
namespace ScriptBloxAPI.DataTypes
{
public class GameObject
{
/// <summary>
/// Gets the place ID.
/// </summary>
public long PlaceId { get; }
/// <summary>
/// Gets the game name.
/// </summary>
public string Name { get; }
/// <summary>
/// Gets the game thumbnail URL.
/// </summary>
public string Thumbnail { get; }
/// <summary>
/// Gets the game URL.
/// </summary>
public string Url { get; }
public GameObject(long gameId, string gameName, string gameThumbnail)
{
PlaceId = gameId;
Name = gameName;
Thumbnail = "https://scriptblox.com"+gameThumbnail;
Url = $"https://www.roblox.com/games/{gameId}";
}
}
}