MyJinyaController
extends BaseController
in package
Tags
Table of Contents
- DEVICE_CODE_COOKIE = 'JinyaDeviceCode'
- $body : array<string, mixed>
- $profilePictureService : ProfilePictureService
- __construct() : mixed
- changeOtpModeToTotp() : ResponseInterface
- entityNotFound() : ResponseInterface
- formatIteratorPlain() : array<string|int, array<string, mixed>>
- getMyProfile() : ResponseInterface
- Gets the information of the current artist
- jsonIterator() : ResponseInterface
- jsonIteratorPlain() : ResponseInterface
- updateColorScheme() : ResponseInterface
- Updates the color scheme to the new value
- updateMyProfile() : ResponseInterface
- Updates about me data of the artist, currently contains email, artist name and about me info
- updatePreferences() : ResponseInterface
- uploadProfilePicture() : ResponseInterface
- verifyOtpModeTotp() : ResponseInterface
Constants
DEVICE_CODE_COOKIE
public
mixed
DEVICE_CODE_COOKIE
= 'JinyaDeviceCode'
Tags
Properties
$body
public
array<string, mixed>
$body
$profilePictureService read-only
private
ProfilePictureService
$profilePictureService
= new ProfilePictureService()
Tags
Methods
__construct()
public
__construct([ProfilePictureService $profilePictureService = new ProfilePictureService() ]) : mixed
Parameters
- $profilePictureService : ProfilePictureService = new ProfilePictureService()
Tags
Return values
mixed —changeOtpModeToTotp()
public
changeOtpModeToTotp() : ResponseInterface
Tags
Return values
ResponseInterface —entityNotFound()
public
entityNotFound(string $message) : ResponseInterface
Parameters
- $message : string
Tags
Return values
ResponseInterface —formatIteratorPlain()
public
formatIteratorPlain(Iterator<string|int, T> $iterator) : array<string|int, array<string, mixed>>
Parameters
- $iterator : Iterator<string|int, T>
Tags
Return values
array<string|int, array<string, mixed>> —getMyProfile()
Gets the information of the current artist
public
getMyProfile() : ResponseInterface
Tags
Return values
ResponseInterface —jsonIterator()
public
jsonIterator(Iterator $iterator) : ResponseInterface
Parameters
- $iterator : Iterator
Tags
Return values
ResponseInterface —jsonIteratorPlain()
public
jsonIteratorPlain(Iterator $iterator) : ResponseInterface
Parameters
- $iterator : Iterator
Tags
Return values
ResponseInterface —updateColorScheme()
Updates the color scheme to the new value
public
updateColorScheme() : ResponseInterface
Tags
Return values
ResponseInterface —updateMyProfile()
Updates about me data of the artist, currently contains email, artist name and about me info
public
updateMyProfile() : ResponseInterface
Tags
Return values
ResponseInterface —updatePreferences()
public
updatePreferences() : ResponseInterface
Tags
Return values
ResponseInterface —uploadProfilePicture()
public
uploadProfilePicture() : ResponseInterface
Tags
Return values
ResponseInterface —verifyOtpModeTotp()
public
verifyOtpModeTotp() : ResponseInterface