/
User.java
58 lines (43 loc) · 1.46 KB
/
User.java
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
package com.github.twitch4j.helix.domain;
import lombok.AccessLevel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.jetbrains.annotations.Nullable;
import java.time.Instant;
/**
* User
*/
@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
public class User {
/** User’s ID. */
private String id;
/** User’s login name. */
private String login;
/** User’s display name. */
private String displayName;
/** User’s type: "staff", "admin", "global_mod", or "". */
private String type;
/** User’s broadcaster type: "partner", "affiliate", or "". */
private String broadcasterType;
/** User’s channel description. */
private String description;
/** URL of the user’s profile image. */
private String profileImageUrl;
/** URL of the user’s offline image. */
private String offlineImageUrl;
/**
* Total number of views of the user’s channel.
*
* @deprecated <a href="https://discuss.dev.twitch.tv/t/get-users-api-endpoint-view-count-deprecation/37777">This field will contain stale data beginning April 15, 2022, and will eventually no longer be populated due to Twitch changes.</a>
*/
@Nullable
@Deprecated
private Integer viewCount;
/** User’s email address. Returned if the request includes the user:read:email scope. */
private String email;
/** Date when the user was created. */
private Instant createdAt;
}