| GET | /Entity-Contacts/Contact |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class GetEntityContact implements IConvertible
{
GetEntityContact();
GetEntityContact.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GetEntityContact";
TypeContext? context = _ctx;
}
class EntityViewModel implements IConvertible
{
int? Id;
String? Guid;
String? Type;
String? Name;
bool? SuperTrader;
String? CompanyDomain;
int? KYCStartedBy;
int? KYCCompletedBy;
String? ETSMOHAAccount;
EntityViewModel({this.Id,this.Guid,this.Type,this.Name,this.SuperTrader,this.CompanyDomain,this.KYCStartedBy,this.KYCCompletedBy,this.ETSMOHAAccount});
EntityViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Guid = json['Guid'];
Type = json['Type'];
Name = json['Name'];
SuperTrader = json['SuperTrader'];
CompanyDomain = json['CompanyDomain'];
KYCStartedBy = json['KYCStartedBy'];
KYCCompletedBy = json['KYCCompletedBy'];
ETSMOHAAccount = json['ETSMOHAAccount'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Guid': Guid,
'Type': Type,
'Name': Name,
'SuperTrader': SuperTrader,
'CompanyDomain': CompanyDomain,
'KYCStartedBy': KYCStartedBy,
'KYCCompletedBy': KYCCompletedBy,
'ETSMOHAAccount': ETSMOHAAccount
};
getTypeName() => "EntityViewModel";
TypeContext? context = _ctx;
}
class GetAllAccessLevelsForEntityContactIdViewModel implements IConvertible
{
int? Id;
bool? Allowed;
String? Name;
String? Description;
String? PrettyText;
GetAllAccessLevelsForEntityContactIdViewModel({this.Id,this.Allowed,this.Name,this.Description,this.PrettyText});
GetAllAccessLevelsForEntityContactIdViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Allowed = json['Allowed'];
Name = json['Name'];
Description = json['Description'];
PrettyText = json['PrettyText'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Allowed': Allowed,
'Name': Name,
'Description': Description,
'PrettyText': PrettyText
};
getTypeName() => "GetAllAccessLevelsForEntityContactIdViewModel";
TypeContext? context = _ctx;
}
class EntityContactViewModel implements IConvertible
{
int? Id;
String? Guid;
int? EntityId;
String? FirstName;
String? LastName;
String? Initials;
String? Password;
String? EmailAddress;
bool? DarkMode;
EntityViewModel? Entity;
DateTime? LastActive;
String? ImageGuid;
int? DialingCodeCountryId;
String? TelephoneNumber;
bool? IsBridgeClient;
List<GetAllAccessLevelsForEntityContactIdViewModel>? AccessLevels;
EntityContactViewModel({this.Id,this.Guid,this.EntityId,this.FirstName,this.LastName,this.Initials,this.Password,this.EmailAddress,this.DarkMode,this.Entity,this.LastActive,this.ImageGuid,this.DialingCodeCountryId,this.TelephoneNumber,this.IsBridgeClient,this.AccessLevels});
EntityContactViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Guid = json['Guid'];
EntityId = json['EntityId'];
FirstName = json['FirstName'];
LastName = json['LastName'];
Initials = json['Initials'];
Password = json['Password'];
EmailAddress = json['EmailAddress'];
DarkMode = json['DarkMode'];
Entity = JsonConverters.fromJson(json['Entity'],'EntityViewModel',context!);
LastActive = JsonConverters.fromJson(json['LastActive'],'DateTime',context!);
ImageGuid = json['ImageGuid'];
DialingCodeCountryId = json['DialingCodeCountryId'];
TelephoneNumber = json['TelephoneNumber'];
IsBridgeClient = json['IsBridgeClient'];
AccessLevels = JsonConverters.fromJson(json['AccessLevels'],'List<GetAllAccessLevelsForEntityContactIdViewModel>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Guid': Guid,
'EntityId': EntityId,
'FirstName': FirstName,
'LastName': LastName,
'Initials': Initials,
'Password': Password,
'EmailAddress': EmailAddress,
'DarkMode': DarkMode,
'Entity': JsonConverters.toJson(Entity,'EntityViewModel',context!),
'LastActive': JsonConverters.toJson(LastActive,'DateTime',context!),
'ImageGuid': ImageGuid,
'DialingCodeCountryId': DialingCodeCountryId,
'TelephoneNumber': TelephoneNumber,
'IsBridgeClient': IsBridgeClient,
'AccessLevels': JsonConverters.toJson(AccessLevels,'List<GetAllAccessLevelsForEntityContactIdViewModel>',context!)
};
getTypeName() => "EntityContactViewModel";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: <String, TypeInfo> {
'GetEntityContact': TypeInfo(TypeOf.Class, create:() => GetEntityContact()),
'EntityViewModel': TypeInfo(TypeOf.Class, create:() => EntityViewModel()),
'GetAllAccessLevelsForEntityContactIdViewModel': TypeInfo(TypeOf.Class, create:() => GetAllAccessLevelsForEntityContactIdViewModel()),
'EntityContactViewModel': TypeInfo(TypeOf.Class, create:() => EntityContactViewModel()),
'List<GetAllAccessLevelsForEntityContactIdViewModel>': TypeInfo(TypeOf.Class, create:() => <GetAllAccessLevelsForEntityContactIdViewModel>[]),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Entity-Contacts/Contact HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Id":0,"Guid":"00000000000000000000000000000000","EntityId":0,"FirstName":"String","LastName":"String","Initials":"String","Password":"String","EmailAddress":"String","DarkMode":false,"Entity":{"Id":0,"Guid":"00000000000000000000000000000000","Type":"String","Name":"String","SuperTrader":false,"CompanyDomain":"String","KYCStartedBy":0,"KYCCompletedBy":0,"ETSMOHAAccount":"String"},"LastActive":"0001-01-01T00:00:00.0000000","ImageGuid":"00000000000000000000000000000000","DialingCodeCountryId":0,"TelephoneNumber":"String","IsBridgeClient":false,"AccessLevels":[{"Id":0,"Allowed":false,"Name":"String","Description":"String","PrettyText":"String"}]}