Class: LMSGraphQL::Mutations::Canvas::AddMessage

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/add_message.rb

Instance Method Summary collapse

Instance Method Details

#resolve(id:, body:, attachment_ids: nil, media_comment_id: nil, media_comment_type: nil, recipients: nil, included_messages: nil, user_note: nil) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/lms_graphql/mutations/canvas/add_message.rb', line 16

def resolve(id:, body:, attachment_ids: nil, media_comment_id: nil, media_comment_type: nil, recipients: nil, included_messages: nil, user_note: nil)
  ctx[:canvas_api].proxy(
    "ADD_MESSAGE",
    {
      "id": id,
      "body": body,
      "attachment_ids": attachment_ids,
      "media_comment_id": media_comment_id,
      "media_comment_type": media_comment_type,
      "recipients": recipients,
      "included_messages": included_messages,
      "user_note": user_note            },
    nil,
  ).parsed_response
end