FrameAppWS

<back to all web services

VerificarAppTokenRQ

The following routes are available for this service:
All Verbs/Utilidades/VerificarAppToken
<?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 VerificarAppTokenRS implements JsonSerializable
{
    public function __construct(
        /** @var Object|null */
        public ?Object $Respuesta=null,
        /** @var Object|null */
        public ?Object $Datos=null,
        /** @var float */
        public float $IdEmpresa=0.0,
        /** @var float */
        public float $IdSistema=0.0,
        /** @var string|null */
        public ?string $Login=null,
        /** @var string|null */
        public ?string $NombreUsuario=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Respuesta'])) $this->Respuesta = JsonConverters::from('Object', $o['Respuesta']);
        if (isset($o['Datos'])) $this->Datos = JsonConverters::from('Object', $o['Datos']);
        if (isset($o['IdEmpresa'])) $this->IdEmpresa = $o['IdEmpresa'];
        if (isset($o['IdSistema'])) $this->IdSistema = $o['IdSistema'];
        if (isset($o['Login'])) $this->Login = $o['Login'];
        if (isset($o['NombreUsuario'])) $this->NombreUsuario = $o['NombreUsuario'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Respuesta)) $o['Respuesta'] = JsonConverters::to('Object', $this->Respuesta);
        if (isset($this->Datos)) $o['Datos'] = JsonConverters::to('Object', $this->Datos);
        if (isset($this->IdEmpresa)) $o['IdEmpresa'] = $this->IdEmpresa;
        if (isset($this->IdSistema)) $o['IdSistema'] = $this->IdSistema;
        if (isset($this->Login)) $o['Login'] = $this->Login;
        if (isset($this->NombreUsuario)) $o['NombreUsuario'] = $this->NombreUsuario;
        return empty($o) ? new class(){} : $o;
    }
}

class VerificarAppTokenRQ implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Id=null,
        /** @var string|null */
        public ?string $NombreApp=null
    ) {
    }

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

PHP VerificarAppTokenRQ DTOs

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

HTTP + XML

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

POST /Utilidades/VerificarAppToken HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<VerificarAppTokenRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <Id>String</Id>
  <NombreApp>String</NombreApp>
</VerificarAppTokenRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<VerificarAppTokenRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <Datos />
  <IdEmpresa>0</IdEmpresa>
  <IdSistema>0</IdSistema>
  <Login>String</Login>
  <NombreUsuario>String</NombreUsuario>
  <Respuesta />
</VerificarAppTokenRS>