Glific v0.3.1 Glific.Conversations.Conversation View Source
The Glific Abstraction to represent the conversation with a user. This unifies a vast majority of the glific data types including: message, contact, and tag
Link to this section Summary
Functions
Create a new conversation. A contact is required for the conversation. Messages can be added later on
Link to this section Types
Specs
t() :: %Glific.Conversations.Conversation{ contact: Glific.Contacts.Contact.t(), id: term(), messages: [Glific.Messages.Message.t()] }
Link to this section Functions
Specs
new(Glific.Contacts.Contact.t(), [Glific.Messages.Message.t()]) :: t()
Create a new conversation. A contact is required for the conversation. Messages can be added later on