ProfileUpdateRequest
public struct ProfileUpdateRequest
A root object that stores information about a profile update request.
-
The username of the user.
Declaration
Swift
public let username: String?
-
The nickname of the user.
Declaration
Swift
public let nickname: String?
-
The biography of the user.
Declaration
Swift
public let biography: String?
-
The type of profile image request.
Declaration
Swift
public let profileImageRequest: ProfileUpdateImageRequest?
-
The type of banner image request.
Declaration
Swift
public let bannerImageRequest: ProfileUpdateImageRequest?
-
The preferred language of the user.
Declaration
Swift
public let preferredLanguage: String?
-
The preferred TV rating of the user.
Declaration
Swift
public let preferredTVRating: Int?
-
The preferred timezone of the user.
Declaration
Swift
public let preferredTimezone: String?
-
init(username:
nickname: biography: profileImageRequest: bannerImageRequest: preferredLanguage: preferredTVRating: preferredTimezone: ) Initialize a new instance of
ProfileUpdateRequest
to request changes in a user’s profile.Declaration
Swift
public init(username: String?, nickname: String?, biography: String?, profileImageRequest: ProfileUpdateImageRequest?, bannerImageRequest: ProfileUpdateImageRequest?, preferredLanguage: String?, preferredTVRating: Int?, preferredTimezone: String?)
Parameters
username
The new username of the user.
nickname
The new nickname of the user.
biography
The new biography of the user.
profileImageRequest
The type of image request.
bannerImageRequest
The type of image request.
preferredLanguage
The new preferred language.
preferredTVRating
The new preferred TV rating.
preferredTimezone
The new preferred timezone.