@@ -32,6 +32,10 @@ class Participant < BaseModel
3232 # @return [String]
3333 attr_accessor :tag
3434
35+ # Optional field to define the device api version of this participant
36+ # @return [DeviceApiVersionEnum]
37+ attr_accessor :device_api_version
38+
3539 # A mapping from model property names to API property names.
3640 def self . names
3741 @_hash = { } if @_hash . nil?
@@ -41,6 +45,7 @@ def self.names
4145 @_hash [ 'sessions' ] = 'sessions'
4246 @_hash [ 'subscriptions' ] = 'subscriptions'
4347 @_hash [ 'tag' ] = 'tag'
48+ @_hash [ 'device_api_version' ] = 'deviceApiVersion'
4449 @_hash
4550 end
4651
@@ -49,13 +54,15 @@ def initialize(id = nil,
4954 publish_permissions = nil ,
5055 sessions = nil ,
5156 subscriptions = nil ,
52- tag = nil )
57+ tag = nil ,
58+ device_api_version = DeviceApiVersionEnum ::V2 )
5359 @id = id
5460 @callback_url = callback_url
5561 @publish_permissions = publish_permissions
5662 @sessions = sessions
5763 @subscriptions = subscriptions
5864 @tag = tag
65+ @device_api_version = device_api_version
5966 end
6067
6168 # Creates an instance of the object from a hash.
@@ -70,14 +77,16 @@ def self.from_hash(hash)
7077 subscriptions = Subscriptions . from_hash ( hash [ 'subscriptions' ] ) if
7178 hash [ 'subscriptions' ]
7279 tag = hash [ 'tag' ]
80+ device_api_version = hash [ 'deviceApiVersion' ] ||= DeviceApiVersionEnum ::V2
7381
7482 # Create object from extracted values.
7583 Participant . new ( id ,
7684 callback_url ,
7785 publish_permissions ,
7886 sessions ,
7987 subscriptions ,
80- tag )
88+ tag ,
89+ device_api_version )
8190 end
8291 end
8392end
0 commit comments