forked from RiisDev/ScriptBloxAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScriptObject.cs
More file actions
105 lines (87 loc) · 3.19 KB
/
ScriptObject.cs
File metadata and controls
105 lines (87 loc) · 3.19 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
using System;
using System.Collections.Generic;
using ScriptBloxAPI.Backend_Functions;
namespace ScriptBloxAPI.DataTypes
{
public class ScriptObject
{
/// <summary>
/// Gets the game object associated with the script.
/// </summary>
public GameObject Game { get; }
/// <summary>
/// Gets the list of tags associated with the script.
/// </summary>
public List<string> Tags { get; }
/// <summary>
/// Gets the title of the script.
/// </summary>
public string Title { get; }
/// <summary>
/// Gets the ID of the script.
/// </summary>
public string Id { get; }
/// <summary>
/// Gets the ScriptBlox ID of the script.
/// </summary>
public string ScriptBloxId { get; }
/// <summary>
/// Gets the executing script name.
/// </summary>
public string ExecutingScript { get; }
/// <summary>
/// Gets the number of views on the script.
/// </summary>
public long Views { get; }
/// <summary>
/// Gets the number of likes on the script.
/// </summary>
public long Likes { get; }
/// <summary>
/// Gets the number of dislikes on the script.
/// </summary>
public long Dislikes { get; }
/// <summary>
/// Gets a value indicating whether the script is universal.
/// </summary>
public bool IsUniversal { get; }
/// <summary>
/// Gets a value indicating whether the script is patched.
/// </summary>
public bool IsPatched { get; }
/// <summary>
/// Gets a value indicating whether the script is verified.
/// </summary>
public bool IsVerified { get; }
/// <summary>
/// Gets a value indicating whether the script requires a key.
/// </summary>
public bool RequiresKey { get; }
/// <summary>
/// Gets the creation date and time of the script.
/// </summary>
public DateTime CreatedAt { get; }
/// <summary>
/// Gets the last updated date and time of the script.
/// </summary>
public DateTime UpdatedAt { get; }
public ScriptObject(GameObject game, string scriptTitle, string scriptId, string scriptBloxId, string executingScript, string epocUpdated, string epocCreated, long scriptViews, long scriptLikes, long scriptDislikes, bool isUniversal, bool isPatched, bool requiresKey, bool isVerified, List<string> scriptTags)
{
Game = game;
Title = scriptTitle;
Id = scriptId;
ScriptBloxId = scriptBloxId;
Views = scriptViews;
Likes = scriptLikes;
Dislikes = scriptDislikes;
IsUniversal = isUniversal;
IsPatched = isPatched;
Tags = scriptTags;
ExecutingScript = executingScript;
IsVerified = isVerified;
RequiresKey = requiresKey;
UpdatedAt = MiscFunctions.ConvertStringToDateTime(epocUpdated);
CreatedAt = MiscFunctions.ConvertStringToDateTime(epocCreated);
}
}
}