Bridge

<back to all web services

EnquiryChatDetails

Chats
The following routes are available for this service:
GET/Chats/Details
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EnquiryChatDetails:
    id: Optional[str] = None
    single_chat: bool = False


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ChatDetailsViewModel:
    vessel_id: int = 0
    entity_contact_id: int = 0
    entity_contact_guid: Optional[str] = None
    entity_contact_image_guid: Optional[str] = None
    entity_contact_first_name: Optional[str] = None
    entity_contact_last_name: Optional[str] = None
    chat_guid: Optional[str] = None
    chatting_with_entity_contact_first_name: Optional[str] = None
    chatting_with_entity_contact_last_name: Optional[str] = None
    chatting_with_entity_contact_job_title: Optional[str] = None
    chatting_with_entity_name: Optional[str] = None
    single_chat: bool = False
    chatting_with_entity_contact_id: int = 0
    chatting_with_entity_contact_guid: Optional[str] = None
    chatting_with_entity_contact_role: Optional[str] = None
    chatting_with_entity_id: int = 0
    chatting_with_entity_contact_email_address: Optional[str] = None
    nominate_seller_already_used: bool = False
    active_chat_author_ids: Optional[str] = None
    banner_text: Optional[str] = None
    chatting_with_entity_contact_image_guid: Optional[str] = None

Python EnquiryChatDetails DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Chats/Details HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"VesselId":0,"EntityContactId":0,"EntityContactGuid":"00000000000000000000000000000000","EntityContactImageGuid":"00000000000000000000000000000000","EntityContactFirstName":"String","EntityContactLastName":"String","ChatGuid":"00000000000000000000000000000000","ChattingWithEntityContactFirstName":"String","ChattingWithEntityContactLastName":"String","ChattingWithEntityContactJobTitle":"String","ChattingWithEntityName":"String","SingleChat":false,"ChattingWithEntityContactId":0,"ChattingWithEntityContactGuid":"00000000000000000000000000000000","ChattingWithEntityContactRole":"String","ChattingWithEntityId":0,"ChattingWithEntityContactEmailAddress":"String","NominateSellerAlreadyUsed":false,"ActiveChatAuthorIds":"String","BannerText":"String","ChattingWithEntityContactImageGuid":"00000000000000000000000000000000"}