Trendsic Platform Service

<back to all web services

DropboxShareRequestExtended

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/DropboxShareExtended/{ContactId}/{AttachmentId}/{SharerAgentId}
GET,OPTIONS/v1/DropboxShareExtended/DB/{AttachmentId}/{SharerAgentId}
import 'package:servicestack/servicestack.dart';

class DropboxShareExtended implements IConvertible
{
    int? DropboxShareId;
    int? SharerAgentId;
    int? ContactId;
    int? ProjectId;
    int? AgentId;
    String? FirstName;
    String? LastName;
    String? AttachmentId;
    bool? CanShare;

    DropboxShareExtended({this.DropboxShareId,this.SharerAgentId,this.ContactId,this.ProjectId,this.AgentId,this.FirstName,this.LastName,this.AttachmentId,this.CanShare});
    DropboxShareExtended.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        DropboxShareId = json['DropboxShareId'];
        SharerAgentId = json['SharerAgentId'];
        ContactId = json['ContactId'];
        ProjectId = json['ProjectId'];
        AgentId = json['AgentId'];
        FirstName = json['FirstName'];
        LastName = json['LastName'];
        AttachmentId = json['AttachmentId'];
        CanShare = json['CanShare'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'DropboxShareId': DropboxShareId,
        'SharerAgentId': SharerAgentId,
        'ContactId': ContactId,
        'ProjectId': ProjectId,
        'AgentId': AgentId,
        'FirstName': FirstName,
        'LastName': LastName,
        'AttachmentId': AttachmentId,
        'CanShare': CanShare
    };

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

class DropboxShareResponseExtended implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<DropboxShareExtended>? DropboxShareExtended = [];

    DropboxShareResponseExtended({this.ResponseStatus,this.DropboxShareExtended});
    DropboxShareResponseExtended.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        DropboxShareExtended = JsonConverters.fromJson(json['DropboxShareExtended'],'List<DropboxShareExtended>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'DropboxShareExtended': JsonConverters.toJson(DropboxShareExtended,'List<DropboxShareExtended>',context!)
    };

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

class DropboxShareRequestExtended implements IConvertible
{
    int? ContactId;
    String? AttachmentId;
    int? SharerAgentId;

    DropboxShareRequestExtended({this.ContactId,this.AttachmentId,this.SharerAgentId});
    DropboxShareRequestExtended.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'ContactId': ContactId,
        'AttachmentId': AttachmentId,
        'SharerAgentId': SharerAgentId
    };

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'DropboxShareExtended': TypeInfo(TypeOf.Class, create:() => DropboxShareExtended()),
    'DropboxShareResponseExtended': TypeInfo(TypeOf.Class, create:() => DropboxShareResponseExtended()),
    'List<DropboxShareExtended>': TypeInfo(TypeOf.Class, create:() => <DropboxShareExtended>[]),
    'DropboxShareRequestExtended': TypeInfo(TypeOf.Class, create:() => DropboxShareRequestExtended()),
});

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

GET /v1/DropboxShareExtended/{ContactId}/{AttachmentId}/{SharerAgentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"DropboxShareExtended":[{"DropboxShareId":0,"SharerAgentId":0,"ContactId":0,"ProjectId":0,"AgentId":0,"FirstName":"String","LastName":"String","AttachmentId":"00000000000000000000000000000000","CanShare":false}]}