summaryrefslogtreecommitdiff
path: root/app/models/project_services/zoom_service.rb
blob: 5addbfdb72c7f019ab892a9b2a71bcb6cb4d595c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# frozen_string_literal: true

class ZoomService < Service
  prop_accessor :api_key, :api_secret
  validates :api_key, :api_secret, presence: true, if: :activated?
  def title
    'Zoom'
  end

  def description
    s_('ZoomService|Integrating Zoom allows you to embed zoom content in GitLab issues')
  end

  def help
    'Embed Zoom content in GitLab issues'
  end

  def self.to_param
    'zoom'
  end

  def fields
    [
      {
        type: 'text',
        name: 'api_key',
        placeholder: s_('ZoomService|Api key placeholder...'),
        required: true
      },
      {
        type: 'text',
        name: 'api_secret',
        placeholder: s_('ZoomService|Secret key placeholder...'),
        required: true
      }
   ]
  end

   def self.supported_events
      %w()
   end

end