import { IMessageDataWrapper } from '@nitrots/api';
import { ChatRecordData } from './ChatRecordData';

export class CfhChatlogData
{
    private _issueId: number;
    private _callerUserId: number;
    private _reportedUserId: number;
    private _chatRecordId: number;
    private _chatRecord: ChatRecordData;

    constructor(k: IMessageDataWrapper)
    {
        this._issueId = k.readInt();
        this._callerUserId = k.readInt();
        this._reportedUserId = k.readInt();
        this._chatRecordId = k.readInt();
        this._chatRecord = new ChatRecordData(k);
    }

    public get issueId(): number
    {
        return this._issueId;
    }

    public get callerUserId(): number
    {
        return this._callerUserId;
    }

    public get reportedUserId(): number
    {
        return this._reportedUserId;
    }

    public get chatRecordId(): number
    {
        return this._chatRecordId;
    }

    public get chatRecord(): ChatRecordData
    {
        return this._chatRecord;
    }
}
