UserData
public struct UserData : Unmarshaling
UserData
is a class that encapsulates all of the information of a single user on Twitch.
-
UserType
is used to show the role that a user has on Twitch.tv.- staff: The user is a staff member of Twitch
- admin: The user is an administrator of Twitch
- globalMod: The user is a moderator on all channels of Twitch
- normal: The user is a normal user.
Declaration
Swift
public enum UserType : String
-
BroadcasterType
is used to show the type of streamer that a user is. For more information on the differences between a partner, affiliate, and a normal streamer, please visit here- partner: The user is a partner on Twitch; special features are available for this user.
- affiliate: The user is an affiliate on Twitch; monetization on streams is possible.
- normal: The user is a normal streamer on Twitch; no special permissions are garnered.
Declaration
Swift
public enum BroadcasterType : String
-
userId
specifies the ID of the user.Declaration
Swift
public let userId: String
-
userLoginName
specifies the login name of the user.Declaration
Swift
public let userLoginName: String
-
userDisplayName
specifies the display name of the user.Declaration
Swift
public let userDisplayName: String
-
userType
specifies the type of user that this user is.Declaration
Swift
public let userType: UserType
-
broadcasterType
specifies the type of broadcaster that this user is.Declaration
Swift
public let broadcasterType: BroadcasterType
-
description
specifies the description this user has.Declaration
Swift
public let description: String?
-
profileImageURL
specifies the url of the profile image for this user.Declaration
Swift
public let profileImageURL: URL
-
offlineImageURL
specifies the offline image url of this user. This image is shown whenever their stream is visited, but it is offline.Declaration
Swift
public let offlineImageURL: URL?
-
viewCount
specifies the number of views that this user has.Declaration
Swift
public let viewCount: Int
-
email
specifies the email that this user has. This variable will only be returned if theGet User(s)
API was called on one’s self anduser:read:email
is defined as a scope of permissions for the token provided.Declaration
Swift
public let email: String?
-
Initializes a
UserData
object from the inputMarshaledObject
. This will throw if there is missing data from the inputMarshaledObject
.Throws
If data is missing that was expected to be non-nil
.Declaration
Swift
public init(object: MarshaledObject) throws
Parameters
object
The object to initialize a
UserData
object from


Drag your mp3 file to show tags.
APIC
APIC --- Attached picture
COMM --- Comments
GEOB --- General encapsulated object
PRIV --- Private frame
TALB --- Album/Movie/Show title
TCOM --- Composer
TCON --- Content type
TIT1 --- Content group description
TIT2 --- Title/songname/content description
TPE1 --- Lead performer(s)/Soloist(s)
TPE2 --- Band/orchestra/accompaniment
TPUB --- Publisher
TRCK --- Track number/Position in set
TYER --- Year
More tags here