Bridge

<back to all web services

EnquiryChatMessages

Chats
The following routes are available for this service:
GET/Chats/Messages
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 EnquiryChatMessages:
    id: Optional[str] = None
    sort_order: Optional[str] = None
    device_local_time: datetime.datetime = datetime.datetime(1, 1, 1)
    from_message_guid: Optional[str] = None

Python EnquiryChatMessages DTOs

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

HTTP + OTHER

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

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

[{"Id":0,"Type":"String","FromBridge":false,"Delivered":false,"Read":false,"SentDateTime":"0001-01-01T00:00:00.0000000","Text":"String","EntityContactId":0,"EntityContactGuid":"00000000000000000000000000000000","EntityContactFirstName":"String","EntityContactLastName":"String","IconUrl":"String","MessageType":"String","CardTitle":"String","ButtonText":"String","ButtonVisibleTo":0,"RecapId":0,"RecapGuid":"00000000000000000000000000000000","Status":"String","MessageGuid":"00000000000000000000000000000000","BannerText":"String","EntityContactImageGuid":"00000000000000000000000000000000"}]