-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadd_comment_bookmark_request.rb
More file actions
51 lines (46 loc) · 1.57 KB
/
add_comment_bookmark_request.rb
File metadata and controls
51 lines (46 loc) · 1.57 KB
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
44
45
46
47
48
49
50
51
# frozen_string_literal: true
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
module GetStream
module Generated
module Models
#
class AddCommentBookmarkRequest < GetStream::BaseModel
# Model attributes
# @!attribute folder_id
# @return [String] ID of the folder to add the bookmark to
attr_accessor :folder_id
# @!attribute user_id
# @return [String]
attr_accessor :user_id
# @!attribute custom
# @return [Object] Custom data for the bookmark
attr_accessor :custom
# @!attribute new_folder
# @return [AddFolderRequest]
attr_accessor :new_folder
# @!attribute user
# @return [UserRequest]
attr_accessor :user
# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@folder_id = attributes[:folder_id] || attributes['folder_id'] || nil
@user_id = attributes[:user_id] || attributes['user_id'] || nil
@custom = attributes[:custom] || attributes['custom'] || nil
@new_folder = attributes[:new_folder] || attributes['new_folder'] || nil
@user = attributes[:user] || attributes['user'] || nil
end
# Override field mappings for JSON serialization
def self.json_field_mappings
{
folder_id: 'folder_id',
user_id: 'user_id',
custom: 'custom',
new_folder: 'new_folder',
user: 'user'
}
end
end
end
end
end