Unico3.Link.API

<back to all web services

ImpostaStatoSessioneMobile

Interventi
The following routes are available for this service:
PUT/assistenza/interventi/{Id}/stato/sessione-mobile
PUT/assistenza/interventi/stato/sessione-mobile
import 'package:servicestack/servicestack.dart';

class ImpostaStatoSessioneMobile implements IConvertible
{
    int? Id;
    bool? IsChiusa;

    ImpostaStatoSessioneMobile({this.Id,this.IsChiusa});
    ImpostaStatoSessioneMobile.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        IsChiusa = json['IsChiusa'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'IsChiusa': IsChiusa
    };

    getTypeName() => "ImpostaStatoSessioneMobile";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'link.dc8.unico3.cloud', types: <String, TypeInfo> {
    'ImpostaStatoSessioneMobile': TypeInfo(TypeOf.Class, create:() => ImpostaStatoSessioneMobile()),
});

Dart ImpostaStatoSessioneMobile DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

PUT /assistenza/interventi/{Id}/stato/sessione-mobile HTTP/1.1 
Host: unico3.link.api 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":0,"IsChiusa":false}