Field Squared API Services

<back to all web services

MessageUser

The following routes are available for this service:
GET/{Workspace}/MessageUser/{UserId}
import 'package:servicestack/servicestack.dart';

class MessageUser implements IConvertible
{
    String? ObjectId;
    String? Workspace;
    String? UserId;
    String? ApplicationId;
    String? DisplayName;
    String? ImageUrl;

    MessageUser({this.ObjectId,this.Workspace,this.UserId,this.ApplicationId,this.DisplayName,this.ImageUrl});
    MessageUser.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ObjectId = json['ObjectId'];
        Workspace = json['Workspace'];
        UserId = json['UserId'];
        ApplicationId = json['ApplicationId'];
        DisplayName = json['DisplayName'];
        ImageUrl = json['ImageUrl'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ObjectId': ObjectId,
        'Workspace': Workspace,
        'UserId': UserId,
        'ApplicationId': ApplicationId,
        'DisplayName': DisplayName,
        'ImageUrl': ImageUrl
    };

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

TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
    'MessageUser': TypeInfo(TypeOf.Class, create:() => MessageUser()),
});

Dart MessageUser 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 /{Workspace}/MessageUser/{UserId} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/xml