<back to all web services

DECMonitorContentAnalysisDto

The following routes are available for this service:
GET/RestApi/sitefinity/data-intelligence/content-analysis-progress
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


class DECEnableContentAnalysisDto implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $Progress=0,
        /** @var string|null */
        public ?string $DataCenterApiKey=null,
        /** @var array<string>|null */
        public ?array $SiteNames=null,
        /** @var string|null */
        public ?string $StatusMessage=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Progress'])) $this->Progress = $o['Progress'];
        if (isset($o['DataCenterApiKey'])) $this->DataCenterApiKey = $o['DataCenterApiKey'];
        if (isset($o['SiteNames'])) $this->SiteNames = JsonConverters::fromArray('string', $o['SiteNames']);
        if (isset($o['StatusMessage'])) $this->StatusMessage = $o['StatusMessage'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Progress)) $o['Progress'] = $this->Progress;
        if (isset($this->DataCenterApiKey)) $o['DataCenterApiKey'] = $this->DataCenterApiKey;
        if (isset($this->SiteNames)) $o['SiteNames'] = JsonConverters::toArray('string', $this->SiteNames);
        if (isset($this->StatusMessage)) $o['StatusMessage'] = $this->StatusMessage;
        return empty($o) ? new class(){} : $o;
    }
}

class DECMonitorContentAnalysisDto implements JsonSerializable
{
    public function __construct(
        /** @var array<DECEnableContentAnalysisDto>|null */
        public ?array $DataCenterProgress=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['DataCenterProgress'])) $this->DataCenterProgress = JsonConverters::fromArray('DECEnableContentAnalysisDto', $o['DataCenterProgress']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->DataCenterProgress)) $o['DataCenterProgress'] = JsonConverters::toArray('DECEnableContentAnalysisDto', $this->DataCenterProgress);
        return empty($o) ? new class(){} : $o;
    }
}

PHP DECMonitorContentAnalysisDto DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /RestApi/sitefinity/data-intelligence/content-analysis-progress HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	DataCenterProgress: 
	[
		{
			Progress: 0,
			DataCenterApiKey: String,
			SiteNames: 
			[
				String
			],
			StatusMessage: String
		}
	]
}