Bridge

<back to all web services

EnquiryChatList

Enquiries
The following routes are available for this service:
GET/Enquiries/Chat-List
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class EnquiryChatList implements IConvertible
{
    String? Id;

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

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

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

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

class GetEnquiryChatListForContactIdViewModel implements IConvertible
{
    int? Id;
    String? Guid;
    String? ChatGuid;
    int? EntityId;
    String? EntityName;
    int? EntityContactId;
    String? EntityContactFirstName;
    String? EntityContactLastName;
    String? EntityContactName;
    String? EntityContactRoleInChat;
    int? ChattingWithEntityId;
    String? ChattingWithEntityName;
    int? ChattingWithEntityContactId;
    String? ChattingWithEntityContactFirstName;
    String? ChattingWithEntityContactLastName;
    String? ChattingWithEntityContactName;
    String? ChattingWithEntityContactNameAndEntity;
    String? ChattingWithEntityContactRoleInChat;
    int? UnreadMessagesForEntityContact;
    String? LastMessageDateTime;
    String? LastMessageText;
    int? ChatId;
    bool? LastMessageWasFromMe;
    bool? LastMessageDelivered;
    bool? LastMessageRead;
    String? ChattingWithEntityContactGuid;
    int? DealRecapCode;
    String? BannerText;
    String? ChattingWithEntityContactImageGuid;

    GetEnquiryChatListForContactIdViewModel({this.Id,this.Guid,this.ChatGuid,this.EntityId,this.EntityName,this.EntityContactId,this.EntityContactFirstName,this.EntityContactLastName,this.EntityContactName,this.EntityContactRoleInChat,this.ChattingWithEntityId,this.ChattingWithEntityName,this.ChattingWithEntityContactId,this.ChattingWithEntityContactFirstName,this.ChattingWithEntityContactLastName,this.ChattingWithEntityContactName,this.ChattingWithEntityContactNameAndEntity,this.ChattingWithEntityContactRoleInChat,this.UnreadMessagesForEntityContact,this.LastMessageDateTime,this.LastMessageText,this.ChatId,this.LastMessageWasFromMe,this.LastMessageDelivered,this.LastMessageRead,this.ChattingWithEntityContactGuid,this.DealRecapCode,this.BannerText,this.ChattingWithEntityContactImageGuid});
    GetEnquiryChatListForContactIdViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Guid = json['Guid'];
        ChatGuid = json['ChatGuid'];
        EntityId = json['EntityId'];
        EntityName = json['EntityName'];
        EntityContactId = json['EntityContactId'];
        EntityContactFirstName = json['EntityContactFirstName'];
        EntityContactLastName = json['EntityContactLastName'];
        EntityContactName = json['EntityContactName'];
        EntityContactRoleInChat = json['EntityContactRoleInChat'];
        ChattingWithEntityId = json['ChattingWithEntityId'];
        ChattingWithEntityName = json['ChattingWithEntityName'];
        ChattingWithEntityContactId = json['ChattingWithEntityContactId'];
        ChattingWithEntityContactFirstName = json['ChattingWithEntityContactFirstName'];
        ChattingWithEntityContactLastName = json['ChattingWithEntityContactLastName'];
        ChattingWithEntityContactName = json['ChattingWithEntityContactName'];
        ChattingWithEntityContactNameAndEntity = json['ChattingWithEntityContactNameAndEntity'];
        ChattingWithEntityContactRoleInChat = json['ChattingWithEntityContactRoleInChat'];
        UnreadMessagesForEntityContact = json['UnreadMessagesForEntityContact'];
        LastMessageDateTime = json['LastMessageDateTime'];
        LastMessageText = json['LastMessageText'];
        ChatId = json['ChatId'];
        LastMessageWasFromMe = json['LastMessageWasFromMe'];
        LastMessageDelivered = json['LastMessageDelivered'];
        LastMessageRead = json['LastMessageRead'];
        ChattingWithEntityContactGuid = json['ChattingWithEntityContactGuid'];
        DealRecapCode = json['DealRecapCode'];
        BannerText = json['BannerText'];
        ChattingWithEntityContactImageGuid = json['ChattingWithEntityContactImageGuid'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Guid': Guid,
        'ChatGuid': ChatGuid,
        'EntityId': EntityId,
        'EntityName': EntityName,
        'EntityContactId': EntityContactId,
        'EntityContactFirstName': EntityContactFirstName,
        'EntityContactLastName': EntityContactLastName,
        'EntityContactName': EntityContactName,
        'EntityContactRoleInChat': EntityContactRoleInChat,
        'ChattingWithEntityId': ChattingWithEntityId,
        'ChattingWithEntityName': ChattingWithEntityName,
        'ChattingWithEntityContactId': ChattingWithEntityContactId,
        'ChattingWithEntityContactFirstName': ChattingWithEntityContactFirstName,
        'ChattingWithEntityContactLastName': ChattingWithEntityContactLastName,
        'ChattingWithEntityContactName': ChattingWithEntityContactName,
        'ChattingWithEntityContactNameAndEntity': ChattingWithEntityContactNameAndEntity,
        'ChattingWithEntityContactRoleInChat': ChattingWithEntityContactRoleInChat,
        'UnreadMessagesForEntityContact': UnreadMessagesForEntityContact,
        'LastMessageDateTime': LastMessageDateTime,
        'LastMessageText': LastMessageText,
        'ChatId': ChatId,
        'LastMessageWasFromMe': LastMessageWasFromMe,
        'LastMessageDelivered': LastMessageDelivered,
        'LastMessageRead': LastMessageRead,
        'ChattingWithEntityContactGuid': ChattingWithEntityContactGuid,
        'DealRecapCode': DealRecapCode,
        'BannerText': BannerText,
        'ChattingWithEntityContactImageGuid': ChattingWithEntityContactImageGuid
    };

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

class ChatListViewModel implements IConvertible
{
    String? BannerText;
    List<GetEnquiryChatListForContactIdViewModel>? GetEnquiryChatListForContactId;

    ChatListViewModel({this.BannerText,this.GetEnquiryChatListForContactId});
    ChatListViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: <String, TypeInfo> {
    'EnquiryChatList': TypeInfo(TypeOf.Class, create:() => EnquiryChatList()),
    'GetEnquiryChatListForContactIdViewModel': TypeInfo(TypeOf.Class, create:() => GetEnquiryChatListForContactIdViewModel()),
    'ChatListViewModel': TypeInfo(TypeOf.Class, create:() => ChatListViewModel()),
    'List<GetEnquiryChatListForContactIdViewModel>': TypeInfo(TypeOf.Class, create:() => <GetEnquiryChatListForContactIdViewModel>[]),
});

Dart EnquiryChatList 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 /Enquiries/Chat-List HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ChatListViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
  <BannerText>String</BannerText>
  <GetEnquiryChatListForContactId>
    <GetEnquiryChatListForContactIdViewModel>
      <BannerText>String</BannerText>
      <ChatGuid>00000000-0000-0000-0000-000000000000</ChatGuid>
      <ChatId>0</ChatId>
      <ChattingWithEntityContactFirstName>String</ChattingWithEntityContactFirstName>
      <ChattingWithEntityContactGuid>00000000-0000-0000-0000-000000000000</ChattingWithEntityContactGuid>
      <ChattingWithEntityContactId>0</ChattingWithEntityContactId>
      <ChattingWithEntityContactImageGuid>00000000-0000-0000-0000-000000000000</ChattingWithEntityContactImageGuid>
      <ChattingWithEntityContactLastName>String</ChattingWithEntityContactLastName>
      <ChattingWithEntityContactName>String</ChattingWithEntityContactName>
      <ChattingWithEntityContactNameAndEntity>String</ChattingWithEntityContactNameAndEntity>
      <ChattingWithEntityContactRoleInChat>String</ChattingWithEntityContactRoleInChat>
      <ChattingWithEntityId>0</ChattingWithEntityId>
      <ChattingWithEntityName>String</ChattingWithEntityName>
      <DealRecapCode>0</DealRecapCode>
      <EntityContactFirstName>String</EntityContactFirstName>
      <EntityContactId>0</EntityContactId>
      <EntityContactLastName>String</EntityContactLastName>
      <EntityContactName>String</EntityContactName>
      <EntityContactRoleInChat>String</EntityContactRoleInChat>
      <EntityId>0</EntityId>
      <EntityName>String</EntityName>
      <Guid>00000000-0000-0000-0000-000000000000</Guid>
      <Id>0</Id>
      <LastMessageDateTime>String</LastMessageDateTime>
      <LastMessageDelivered>false</LastMessageDelivered>
      <LastMessageRead>false</LastMessageRead>
      <LastMessageText>String</LastMessageText>
      <LastMessageWasFromMe>false</LastMessageWasFromMe>
      <UnreadMessagesForEntityContact>0</UnreadMessagesForEntityContact>
    </GetEnquiryChatListForContactIdViewModel>
  </GetEnquiryChatListForContactId>
</ChatListViewModel>