Task
    
            
            in package
            
        
    
            
            implements
                            JsonSerializable                    
    
    
FinalYes
This is a text processing task
Tags
Table of Contents
Interfaces
- JsonSerializable
 
Constants
- STATUS_FAILED = 4
 - STATUS_RUNNING = 2
 - STATUS_SCHEDULED = 1
 - STATUS_SUCCESSFUL = 3
 - STATUS_UNKNOWN = 0
 - TYPES = [\OCP\TextProcessing\FreePromptTaskType::class, \OCP\TextProcessing\SummaryTaskType::class, \OCP\TextProcessing\HeadlineTaskType::class, \OCP\TextProcessing\TopicsTaskType::class]
 
Properties
- $appId : string
 - $id : int|null
 - $identifier : string
 - $input : string
 - $output : string|null
 - $status : int
 - $type : string
 - $userId : string|null
 - $completionExpectedAt : DateTime|null
 
Methods
- __construct() : mixed
 - canUseProvider() : bool
 - getAppId() : string
 - getCompletionExpectedAt() : DateTime|null
 - getId() : int|null
 - getIdentifier() : string
 - getInput() : string
 - getOutput() : string|null
 - getStatus() : int
 - getType() : string
 - getUserId() : string|null
 - jsonSerialize() : array<string|int, mixed>
 - setCompletionExpectedAt() : void
 - setId() : void
 - setOutput() : void
 - setStatus() : void
 - visitProvider() : string
 
Constants
STATUS_FAILED
    public
        mixed
    STATUS_FAILED
    = 4
    
    
    
    Tags
STATUS_RUNNING
    public
        mixed
    STATUS_RUNNING
    = 2
    
    
    
    Tags
STATUS_SCHEDULED
    public
        mixed
    STATUS_SCHEDULED
    = 1
    
    
    
    Tags
STATUS_SUCCESSFUL
    public
        mixed
    STATUS_SUCCESSFUL
    = 3
    
    
    
    Tags
STATUS_UNKNOWN
    public
        mixed
    STATUS_UNKNOWN
    = 0
    
    
    
    Tags
TYPES
    public
        mixed
    TYPES
    = [\OCP\TextProcessing\FreePromptTaskType::class, \OCP\TextProcessing\SummaryTaskType::class, \OCP\TextProcessing\HeadlineTaskType::class, \OCP\TextProcessing\TopicsTaskType::class]
    
    
    
    Tags
Properties
$appId
        protected
            string
    $appId
    
    
    
    
    
    
$id
        protected
            int|null
    $id
     = null
    
    
    
    
    
$identifier
        protected
            string
    $identifier
     = ''
    
    
    
    
    
$input
        protected
            string
    $input
    
    
    
    
    
    
$output
        protected
            string|null
    $output
     = null
    
    
    
    
    
$status
        protected
            int
    $status
     = self::STATUS_UNKNOWN
    
    
    
    Tags
$type
        protected
            string
    $type
    
    
    
    
    
    
$userId
        protected
            string|null
    $userId
    
    
    
    
    
    
$completionExpectedAt
        private
            DateTime|null
    $completionExpectedAt
     = null
    
    
    
    
    
Methods
__construct()
    public
        final            __construct(string $type, string $input, string $appId, string|null $userId[, string $identifier = '' ]) : mixed
    Parameters
- $type : string
 - $input : string
 - $appId : string
 - $userId : string|null
 - $identifier : string = ''
 - 
                    
An arbitrary identifier for this task. max length: 255 chars
 
Tags
canUseProvider()
    public
                    canUseProvider(IProvider $provider) : bool
    Parameters
- $provider : IProvider
 
Tags
Return values
boolgetAppId()
    public
        final            getAppId() : string
    Tags
Return values
stringgetCompletionExpectedAt()
    public
        final            getCompletionExpectedAt() : DateTime|null
    Tags
Return values
DateTime|nullgetId()
    public
        final            getId() : int|null
    Tags
Return values
int|nullgetIdentifier()
    public
        final            getIdentifier() : string
    Tags
Return values
stringgetInput()
    public
        final            getInput() : string
    Tags
Return values
stringgetOutput()
    public
        final            getOutput() : string|null
    Tags
Return values
string|nullgetStatus()
    public
        final            getStatus() : int
    Tags
Return values
intgetType()
    public
        final            getType() : string
    Tags
Return values
stringgetUserId()
    public
        final            getUserId() : string|null
    Tags
Return values
string|nulljsonSerialize()
    public
                    jsonSerialize() : array<string|int, mixed>
    Tags
Return values
array<string|int, mixed>setCompletionExpectedAt()
    public
        final            setCompletionExpectedAt(null|DateTime $completionExpectedAt) : void
    Parameters
- $completionExpectedAt : null|DateTime
 
Tags
setId()
    public
        final            setId(int|null $id) : void
    Parameters
- $id : int|null
 
Tags
setOutput()
    public
        final            setOutput(string|null $output) : void
    Parameters
- $output : string|null
 
Tags
setStatus()
    public
        final            setStatus(int $status) : void
    Parameters
- $status : int
 
Tags
visitProvider()
    public
                    visitProvider(IProvider $provider) : string
    Parameters
- $provider : IProvider