@@ -24,6 +24,8 @@ class Participant(object):
2424 associated with Capped to one
2525 subscriptions (Subscriptions): TODO: type description here.
2626 tag (string): User defined tag to associate with the participant
27+ device_api_version (DeviceApiVersionEnum): Optional field to define
28+ the device api version of this participant
2729
2830 """
2931
@@ -34,7 +36,8 @@ class Participant(object):
3436 "publish_permissions" : 'publishPermissions' ,
3537 "sessions" : 'sessions' ,
3638 "subscriptions" : 'subscriptions' ,
37- "tag" : 'tag'
39+ "tag" : 'tag' ,
40+ "device_api_version" : 'deviceApiVersion'
3841 }
3942
4043 def __init__ (self ,
@@ -43,7 +46,8 @@ def __init__(self,
4346 publish_permissions = None ,
4447 sessions = None ,
4548 subscriptions = None ,
46- tag = None ):
49+ tag = None ,
50+ device_api_version = 'v2' ):
4751 """Constructor for the Participant class"""
4852
4953 # Initialize members of the class
@@ -53,6 +57,7 @@ def __init__(self,
5357 self .sessions = sessions
5458 self .subscriptions = subscriptions
5559 self .tag = tag
60+ self .device_api_version = device_api_version
5661
5762 @classmethod
5863 def from_dictionary (cls ,
@@ -78,11 +83,13 @@ def from_dictionary(cls,
7883 sessions = dictionary .get ('sessions' )
7984 subscriptions = Subscriptions .from_dictionary (dictionary .get ('subscriptions' )) if dictionary .get ('subscriptions' ) else None
8085 tag = dictionary .get ('tag' )
86+ device_api_version = dictionary .get ("deviceApiVersion" ) if dictionary .get ("deviceApiVersion" ) else 'v2'
8187
8288 # Return an object of this model
8389 return cls (id ,
8490 callback_url ,
8591 publish_permissions ,
8692 sessions ,
8793 subscriptions ,
88- tag )
94+ tag ,
95+ device_api_version )
0 commit comments