code_corps v0.0.1 CodeCorps.Messages View Source

Main context for work with the Messaging feature.

Link to this section Summary

Functions

Creates a CodeCorps.Message from a set of parameters

Lists pre-scoped CodeCorps.Message records filtered by parameters

Lists pre-scoped CodeCorps.Conversation records filtered by parameters

Lists pre-scoped CodeCorps.ConversationPart records filtered by parameters

Link to this section Functions

Link to this function add_part(params) View Source
add_part(map()) ::
  {:ok, CodeCorps.ConversationPart.t()} |
  {:error, Ecto.Changeset.t()}
Link to this function create(params) View Source
create(map()) ::
  {:ok, CodeCorps.Message.t()} |
  {:error, Ecto.Changeset.t()}

Creates a CodeCorps.Message from a set of parameters.

Link to this function get_conversation(id) View Source
get_conversation(integer()) :: CodeCorps.Conversation.t()

Gets a CodeCorps.Conversation record

Lists pre-scoped CodeCorps.Message records filtered by parameters.

Link to this function list_conversations(scope, params) View Source
list_conversations(Ecto.Queryable.t(), map()) :: [CodeCorps.Conversation.t()]

Lists pre-scoped CodeCorps.Conversation records filtered by parameters

Link to this function list_parts(scope, params) View Source
list_parts(Ecto.Queryable.t(), map()) :: [CodeCorps.Conversation.t()]

Lists pre-scoped CodeCorps.ConversationPart records filtered by parameters

Link to this function update_conversation(conversation, params) View Source