Class: LMSGraphQL::Mutations::Canvas::CreateConversation

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/create_conversation.rb

Instance Method Summary collapse

Instance Method Details

#resolve(recipients:, subject: nil, body:, force_new: nil, group_conversation: nil, attachment_ids: nil, media_comment_id: nil, media_comment_type: nil, user_note: nil, mode: nil, scope: nil, filter: nil, filter_mode: nil, context_code: nil) ⇒ Object



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/lms_graphql/mutations/canvas/create_conversation.rb', line 25

def resolve(recipients:, subject: nil, body:, force_new: nil, group_conversation: nil, attachment_ids: nil, media_comment_id: nil, media_comment_type: nil, user_note: nil, mode: nil, scope: nil, filter: nil, filter_mode: nil, context_code: nil)
  context[:canvas_api].call("CREATE_CONVERSATION").proxy(
    "CREATE_CONVERSATION",
    {},
    {
      "recipients": recipients,
      "subject": subject,
      "body": body,
      "force_new": force_new,
      "group_conversation": group_conversation,
      "attachment_ids": attachment_ids,
      "media_comment_id": media_comment_id,
      "media_comment_type": media_comment_type,
      "user_note": user_note,
      "mode": mode,
      "scope": scope,
      "filter": filter,
      "filter_mode": filter_mode,
      "context_code": context_code
    },
  ).parsed_response
end