Field Squared API Services

<back to all web services

ConversationEvent

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

class ConversationEvent implements IConvertible
{
    String? ObjectId;
    String? Workspace;
    String? Date;
    String? ConversationId;
    String? UserId;
    String? Text;
    String? ThumbnailId;
    bool? IsLink;

    ConversationEvent({this.ObjectId,this.Workspace,this.Date,this.ConversationId,this.UserId,this.Text,this.ThumbnailId,this.IsLink});
    ConversationEvent.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ObjectId = json['ObjectId'];
        Workspace = json['Workspace'];
        Date = json['Date'];
        ConversationId = json['ConversationId'];
        UserId = json['UserId'];
        Text = json['Text'];
        ThumbnailId = json['ThumbnailId'];
        IsLink = json['IsLink'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ObjectId': ObjectId,
        'Workspace': Workspace,
        'Date': Date,
        'ConversationId': ConversationId,
        'UserId': UserId,
        'Text': Text,
        'ThumbnailId': ThumbnailId,
        'IsLink': IsLink
    };

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

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

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

POST /{Workspace}/ConversationEvent HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ObjectId":"String","Workspace":"String","Date":"String","ConversationId":"String","UserId":"String","Text":"String","ThumbnailId":"String","IsLink":false}