skailan-conversations
Version:
Servicio de conversaciones y mensajería para Skailan
31 lines • 892 B
JavaScript
export class Conversation {
id;
organizationId;
channelId;
contactId;
status;
assignedToUserId;
lastMessageAt;
createdAt;
updatedAt;
constructor(id, organizationId, channelId, contactId, status, assignedToUserId, lastMessageAt, createdAt, updatedAt) {
this.id = id;
this.organizationId = organizationId;
this.channelId = channelId;
this.contactId = contactId;
this.status = status;
this.assignedToUserId = assignedToUserId;
this.lastMessageAt = lastMessageAt;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
}
updateStatus(newStatus) {
this.status = newStatus;
this.updatedAt = new Date();
}
assignToUser(userId) {
this.assignedToUserId = userId;
this.updatedAt = new Date();
}
}
//# sourceMappingURL=Conversation.js.map