Class: GetStream::Generated::Models::PushProviderResponse
- Defined in:
- lib/getstream_ruby/generated/models/push_provider_response.rb
Instance Attribute Summary collapse
- #apn_auth_key ⇒ String
- #apn_auth_type ⇒ String
- #apn_development ⇒ Boolean
- #apn_host ⇒ String
- #apn_key_id ⇒ String
- #apn_p12_cert ⇒ String
- #apn_sandbox_certificate ⇒ Boolean
- #apn_supports_remote_notifications ⇒ Boolean
- #apn_supports_voip_notifications ⇒ Boolean
- #apn_team_id ⇒ String
- #apn_topic ⇒ String
- #created_at ⇒ DateTime
- #description ⇒ String
- #disabled_at ⇒ DateTime
- #disabled_reason ⇒ String
- #firebase_apn_template ⇒ String
- #firebase_credentials ⇒ String
- #firebase_data_template ⇒ String
- #firebase_host ⇒ String
- #firebase_notification_template ⇒ String
- #firebase_server_key ⇒ String
- #huawei_app_id ⇒ String
- #huawei_app_secret ⇒ String
- #name ⇒ String
- #type ⇒ String
- #updated_at ⇒ DateTime
- #xiaomi_app_secret ⇒ String
- #xiaomi_package_name ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PushProviderResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ PushProviderResponse
Initialize with attributes
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 98 def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] @name = attributes[:name] || attributes['name'] @type = attributes[:type] || attributes['type'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @apn_auth_key = attributes[:apn_auth_key] || attributes['apn_auth_key'] || nil @apn_auth_type = attributes[:apn_auth_type] || attributes['apn_auth_type'] || nil @apn_development = attributes[:apn_development] || attributes['apn_development'] || nil @apn_host = attributes[:apn_host] || attributes['apn_host'] || nil @apn_key_id = attributes[:apn_key_id] || attributes['apn_key_id'] || nil @apn_p12_cert = attributes[:apn_p12_cert] || attributes['apn_p12_cert'] || nil @apn_sandbox_certificate = attributes[:apn_sandbox_certificate] || attributes['apn_sandbox_certificate'] || nil @apn_supports_remote_notifications = attributes[:apn_supports_remote_notifications] || attributes['apn_supports_remote_notifications'] || nil @apn_supports_voip_notifications = attributes[:apn_supports_voip_notifications] || attributes['apn_supports_voip_notifications'] || nil @apn_team_id = attributes[:apn_team_id] || attributes['apn_team_id'] || nil @apn_topic = attributes[:apn_topic] || attributes['apn_topic'] || nil @description = attributes[:description] || attributes['description'] || nil @disabled_at = attributes[:disabled_at] || attributes['disabled_at'] || nil @disabled_reason = attributes[:disabled_reason] || attributes['disabled_reason'] || nil @firebase_apn_template = attributes[:firebase_apn_template] || attributes['firebase_apn_template'] || nil @firebase_credentials = attributes[:firebase_credentials] || attributes['firebase_credentials'] || nil @firebase_data_template = attributes[:firebase_data_template] || attributes['firebase_data_template'] || nil @firebase_host = attributes[:firebase_host] || attributes['firebase_host'] || nil @firebase_notification_template = attributes[:firebase_notification_template] || attributes['firebase_notification_template'] || nil @firebase_server_key = attributes[:firebase_server_key] || attributes['firebase_server_key'] || nil @huawei_app_id = attributes[:huawei_app_id] || attributes['huawei_app_id'] || nil @huawei_app_secret = attributes[:huawei_app_secret] || attributes['huawei_app_secret'] || nil @xiaomi_app_secret = attributes[:xiaomi_app_secret] || attributes['xiaomi_app_secret'] || nil @xiaomi_package_name = attributes[:xiaomi_package_name] || attributes['xiaomi_package_name'] || nil end |
Instance Attribute Details
#apn_auth_key ⇒ String
26 27 28 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 26 def apn_auth_key @apn_auth_key end |
#apn_auth_type ⇒ String
29 30 31 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 29 def apn_auth_type @apn_auth_type end |
#apn_development ⇒ Boolean
32 33 34 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 32 def apn_development @apn_development end |
#apn_host ⇒ String
35 36 37 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 35 def apn_host @apn_host end |
#apn_key_id ⇒ String
38 39 40 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 38 def apn_key_id @apn_key_id end |
#apn_p12_cert ⇒ String
41 42 43 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 41 def apn_p12_cert @apn_p12_cert end |
#apn_sandbox_certificate ⇒ Boolean
44 45 46 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 44 def apn_sandbox_certificate @apn_sandbox_certificate end |
#apn_supports_remote_notifications ⇒ Boolean
47 48 49 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 47 def apn_supports_remote_notifications @apn_supports_remote_notifications end |
#apn_supports_voip_notifications ⇒ Boolean
50 51 52 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 50 def apn_supports_voip_notifications @apn_supports_voip_notifications end |
#apn_team_id ⇒ String
53 54 55 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 53 def apn_team_id @apn_team_id end |
#apn_topic ⇒ String
56 57 58 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 56 def apn_topic @apn_topic end |
#created_at ⇒ DateTime
14 15 16 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 14 def created_at @created_at end |
#description ⇒ String
59 60 61 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 59 def description @description end |
#disabled_at ⇒ DateTime
62 63 64 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 62 def disabled_at @disabled_at end |
#disabled_reason ⇒ String
65 66 67 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 65 def disabled_reason @disabled_reason end |
#firebase_apn_template ⇒ String
68 69 70 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 68 def firebase_apn_template @firebase_apn_template end |
#firebase_credentials ⇒ String
71 72 73 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 71 def firebase_credentials @firebase_credentials end |
#firebase_data_template ⇒ String
74 75 76 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 74 def firebase_data_template @firebase_data_template end |
#firebase_host ⇒ String
77 78 79 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 77 def firebase_host @firebase_host end |
#firebase_notification_template ⇒ String
80 81 82 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 80 def firebase_notification_template @firebase_notification_template end |
#firebase_server_key ⇒ String
83 84 85 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 83 def firebase_server_key @firebase_server_key end |
#huawei_app_id ⇒ String
86 87 88 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 86 def huawei_app_id @huawei_app_id end |
#huawei_app_secret ⇒ String
89 90 91 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 89 def huawei_app_secret @huawei_app_secret end |
#name ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 17 def name @name end |
#type ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 20 def type @type end |
#updated_at ⇒ DateTime
23 24 25 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 23 def updated_at @updated_at end |
#xiaomi_app_secret ⇒ String
92 93 94 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 92 def xiaomi_app_secret @xiaomi_app_secret end |
#xiaomi_package_name ⇒ String
95 96 97 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 95 def xiaomi_package_name @xiaomi_package_name end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/getstream_ruby/generated/models/push_provider_response.rb', line 131 def self.json_field_mappings { created_at: 'created_at', name: 'name', type: 'type', updated_at: 'updated_at', apn_auth_key: 'apn_auth_key', apn_auth_type: 'apn_auth_type', apn_development: 'apn_development', apn_host: 'apn_host', apn_key_id: 'apn_key_id', apn_p12_cert: 'apn_p12_cert', apn_sandbox_certificate: 'apn_sandbox_certificate', apn_supports_remote_notifications: 'apn_supports_remote_notifications', apn_supports_voip_notifications: 'apn_supports_voip_notifications', apn_team_id: 'apn_team_id', apn_topic: 'apn_topic', description: 'description', disabled_at: 'disabled_at', disabled_reason: 'disabled_reason', firebase_apn_template: 'firebase_apn_template', firebase_credentials: 'firebase_credentials', firebase_data_template: 'firebase_data_template', firebase_host: 'firebase_host', firebase_notification_template: 'firebase_notification_template', firebase_server_key: 'firebase_server_key', huawei_app_id: 'huawei_app_id', huawei_app_secret: 'huawei_app_secret', xiaomi_app_secret: 'xiaomi_app_secret', xiaomi_package_name: 'xiaomi_package_name' } end |