forked from RiisDev/ScriptBloxAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserObject.cs
More file actions
73 lines (61 loc) · 2.02 KB
/
UserObject.cs
File metadata and controls
73 lines (61 loc) · 2.02 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
using System;
using ScriptBloxAPI.Backend_Functions;
namespace ScriptBloxAPI.DataTypes
{
public class UserObject
{
/// <summary>
/// Gets the count of scripts.
/// </summary>
public int ScriptsCount { get; }
/// <summary>
/// Gets the count of followers.
/// </summary>
public int FollowersCount { get; }
/// <summary>
/// Gets the count of following.
/// </summary>
public int FollowingCount { get; }
/// <summary>
/// Gets the username.
/// </summary>
public string Username { get; }
/// <summary>
/// Gets the biography.
/// </summary>
public string Bio { get; }
/// <summary>
/// Gets the avatar URL.
/// </summary>
public string Avatar { get; }
/// <summary>
/// Gets the unique identifier.
/// </summary>
public string Id { get; }
/// <summary>
/// Gets a value indicating whether the user is verified.
/// </summary>
public bool Verified { get; }
/// <summary>
/// Gets the creation date and time.
/// </summary>
public DateTime CreatedAt { get; }
/// <summary>
/// Gets the last active date and time.
/// </summary>
public DateTime LastActive { get; }
public UserObject(int scriptsCount, int followersCount, int followingCount, string username, string bio, string avatar, string id, string createdAt, string lastActive, bool verified)
{
ScriptsCount = scriptsCount;
FollowersCount = followersCount;
FollowingCount = followingCount;
Username = username;
Bio = bio;
Avatar = "https://scriptblox.com" + avatar;
Id = id;
Verified = verified;
CreatedAt = MiscFunctions.ConvertStringToDateTime(createdAt);
LastActive = MiscFunctions.ConvertStringToDateTime(lastActive);
}
}
}