AlbaApi

<back to all web services

ScriptTrackerReq

The following routes are available for this service:
GET/script
GET/script/{Sprint}
GET/script/{Sprint}/{Country}/{Language}/{Section}/{Element}
GET/script/{Sprint}/{Country}/{Language}/{Section}/{ItemCode}/{Element}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class Entity implements IEntity, IConvertible
{
    String? id;

    Entity({this.id});
    Entity.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class ScriptTracker extends Entity implements IConvertible
{
    String? sprint;
    String? country;
    String? language;
    String? section;
    String? itemCode;
    String? element;
    String? value;
    bool? isFromMerge;

    ScriptTracker({this.sprint,this.country,this.language,this.section,this.itemCode,this.element,this.value,this.isFromMerge});
    ScriptTracker.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        sprint = json['sprint'];
        country = json['country'];
        language = json['language'];
        section = json['section'];
        itemCode = json['itemCode'];
        element = json['element'];
        value = json['value'];
        isFromMerge = json['isFromMerge'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'sprint': sprint,
        'country': country,
        'language': language,
        'section': section,
        'itemCode': itemCode,
        'element': element,
        'value': value,
        'isFromMerge': isFromMerge
    });

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

class ScriptTrackerReq implements IConvertible
{
    String? sprint;
    String? country;
    String? language;
    String? section;
    String? itemCode;
    String? element;

    ScriptTrackerReq({this.sprint,this.country,this.language,this.section,this.itemCode,this.element});
    ScriptTrackerReq.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        sprint = json['sprint'];
        country = json['country'];
        language = json['language'];
        section = json['section'];
        itemCode = json['itemCode'];
        element = json['element'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'sprint': sprint,
        'country': country,
        'language': language,
        'section': section,
        'itemCode': itemCode,
        'element': element
    };

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

TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: <String, TypeInfo> {
    'Entity': TypeInfo(TypeOf.Class, create:() => Entity()),
    'ScriptTracker': TypeInfo(TypeOf.Class, create:() => ScriptTracker()),
    'ScriptTrackerReq': TypeInfo(TypeOf.Class, create:() => ScriptTrackerReq()),
});

Dart ScriptTrackerReq 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.

GET /script HTTP/1.1 
Host: hcbtas-q-albamfs-api.azurewebsites.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ScriptTracker xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.Model">
  <Id xmlns="http://schemas.datacontract.org/2004/07/TasSyd.Model.Base">String</Id>
  <Country>String</Country>
  <Element>String</Element>
  <IsFromMerge>false</IsFromMerge>
  <ItemCode>String</ItemCode>
  <Language>String</Language>
  <Section>String</Section>
  <Sprint>String</Sprint>
  <Value>String</Value>
</ScriptTracker>