ActionStreamer 1.2.2__tar.gz → 1.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/PKG-INFO +1 -1
  2. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/Model/Model.py +102 -30
  3. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/pyproject.toml +1 -1
  4. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/README.md +0 -0
  5. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/CommonFunctions/CommonFunctions.py +0 -0
  6. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/CommonFunctions/Wifi/Wifi.py +0 -0
  7. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/CommonFunctions/Wifi/__init__.py +0 -0
  8. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/CommonFunctions/__init__.py +0 -0
  9. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/Config/Config.py +0 -0
  10. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/Config/__init__.py +0 -0
  11. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/Device/Device.py +0 -0
  12. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/Device/__init__.py +0 -0
  13. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/Model/__init__.py +0 -0
  14. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/API/API.py +0 -0
  15. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/API/__init__.py +0 -0
  16. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/Event/Event.py +0 -0
  17. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/Event/__init__.py +0 -0
  18. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/EventPreset/EventPreset.py +0 -0
  19. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/EventPreset/__init__.py +0 -0
  20. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/File/File.py +0 -0
  21. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/File/__init__.py +0 -0
  22. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/Health/Health.py +0 -0
  23. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/Health/__init__.py +0 -0
  24. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/LogMessage/LogMessage.py +0 -0
  25. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/LogMessage/__init__.py +0 -0
  26. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/Patch/Patch.py +0 -0
  27. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/Patch/__init__.py +0 -0
  28. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/Tag/Tag.py +0 -0
  29. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/Tag/__init__.py +0 -0
  30. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/VideoClip/VideoClip.py +0 -0
  31. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/VideoClip/__init__.py +0 -0
  32. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/WebService/__init__.py +0 -0
  33. {actionstreamer-1.2.2 → actionstreamer-1.2.4}/actionstreamer/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: actionstreamer
3
- Version: 1.2.2
3
+ Version: 1.2.4
4
4
  Summary: A library for the ActionStreamer API.
5
5
  Author: ActionStreamer
6
6
  Author-email: joe@actionstreamer.com
@@ -68,8 +68,7 @@ class EventType:
68
68
 
69
69
  class Event:
70
70
 
71
- def __init__(self, key: int, userID: int, deviceID: int, agentTypeID: int, agentID: int, eventTypeID: int, serverEvent: int, eventStatus: str, eventParameters: str, processID: int, result: str, percentComplete: int, priority: int, expirationEpoch: int, attemptNumber: int, maxAttempts: int, checkoutToken: str, tagString: str, tagNumber: int, creationDate: str, createdBy: int, lastModifiedDate: str, lastModifiedBy: int):
72
-
71
+ def __init__(self, key: int, userID: int, deviceID: int, agentTypeID: int, agentID: int, eventTypeID: int, serverEvent: int, eventStatus: str, eventParameters: str, processID: int, result: str, percentComplete: int, priority: int, expirationEpoch: int, attemptNumber: int, maxAttempts: int, checkoutToken: str, tagString: str, tagNumber: int, creationDate: str, createdBy: int, lastModifiedDate: str, lastModifiedBy: int, **kwargs):
73
72
  self.eventID = key
74
73
  self.userID = userID
75
74
  self.deviceID = deviceID
@@ -93,12 +92,14 @@ class Event:
93
92
  self.createdBy = createdBy
94
93
  self.lastModifiedDate = lastModifiedDate
95
94
  self.lastModifiedBy = lastModifiedBy
95
+ # Optionally store any extra fields
96
+ self.extra_fields = kwargs
96
97
 
97
98
 
98
99
  class EventWithNames(Event):
99
100
 
100
- def __init__(self, key: int, userID: int, deviceID: int, agentTypeID: int, agentID: int, eventTypeID: int, serverEvent: int, eventStatus: int, eventParameters: str, processID: int, result: str, percentComplete: int, priority: int, expirationEpoch: int, attemptNumber: int, maxAttempts: int, checkoutToken: str, tagString: str, tagNumber: int, creationDate: str, createdBy: int, lastModifiedDate: str, lastModifiedBy: int, deviceName: str, eventType: str, agentType: str, version: str, eventStatusName: str, eventStatusDescription: str, agentIndex: int):
101
- super().__init__(key, userID, deviceID, agentTypeID, agentID, eventTypeID, serverEvent, eventStatus, eventParameters, processID, result, percentComplete, priority, expirationEpoch, attemptNumber, maxAttempts, checkoutToken, tagString, tagNumber, creationDate, createdBy, lastModifiedDate, lastModifiedBy)
101
+ def __init__(self, key: int, userID: int, deviceID: int, agentTypeID: int, agentID: int, eventTypeID: int, serverEvent: int, eventStatus: int, eventParameters: str, processID: int, result: str, percentComplete: int, priority: int, expirationEpoch: int, attemptNumber: int, maxAttempts: int, checkoutToken: str, tagString: str, tagNumber: int, creationDate: str, createdBy: int, lastModifiedDate: str, lastModifiedBy: int, deviceName: str, eventType: str, agentType: str, version: str, eventStatusName: str, eventStatusDescription: str, agentIndex: int, **kwargs):
102
+ super().__init__(key, userID, deviceID, agentTypeID, agentID, eventTypeID, serverEvent, eventStatus, eventParameters, processID, result, percentComplete, priority, expirationEpoch, attemptNumber, maxAttempts, checkoutToken, tagString, tagNumber, creationDate, createdBy, lastModifiedDate, lastModifiedBy, **kwargs)
102
103
  self.deviceName = deviceName
103
104
  self.eventType = eventType
104
105
  self.agentType = agentType
@@ -108,6 +109,7 @@ class EventWithNames(Event):
108
109
  self.agentIndex = agentIndex
109
110
 
110
111
 
112
+ # Deprecated
111
113
  class RecordingParameters:
112
114
 
113
115
  def __init__(self, height: int = 1920, width: int = 1080, fps: float = 30, bitrate: int = 5000000, vflip: int = 0, hflip: int = 0, encoding: str = '', segmentLengthSeconds: float = 0, audio: int = 0, rotationDegrees: int = 0, **kwargs):
@@ -124,9 +126,45 @@ class RecordingParameters:
124
126
  # Store or ignore unknown fields
125
127
  self.extra_fields = kwargs # Optionally, store unknown fields for debugging or logging
126
128
 
129
+
130
+ class RecordingArgs:
131
+
132
+ def __init__(self, height: int = 1920, width: int = 1080, fps: float = 30, bitrate: int = 5000000, vflip: int = 0, hflip: int = 0, encoding: str = '', segmentLengthSeconds: float = 0, audio: int = 0, rotationDegrees: int = 0, **kwargs):
133
+ self.height = height
134
+ self.width = width
135
+ self.fps = fps
136
+ self.bitrate = bitrate
137
+ self.vflip = vflip
138
+ self.hflip = hflip
139
+ self.encoding = encoding
140
+ self.segmentLengthSeconds = segmentLengthSeconds
141
+ self.audio = audio
142
+ self.rotationDegrees = rotationDegrees
143
+ # Store or ignore unknown fields
144
+ self.extra_fields = kwargs # Optionally, store unknown fields for debugging or logging
145
+
146
+
147
+ # Deprecated
127
148
  class RTMPParameters:
128
149
 
129
- def __init__(self, height: int = 1920, width: int = 1080, fps: float = 30, bitrate: int = 5000000, server: str = '', port: int = 0, streamName: str = '', streamKey: str = '', hflip: int = 0, vflip: int = 0):
150
+ def __init__(self, height: int = 1920, width: int = 1080, fps: float = 30, bitrate: int = 5000000, server: str = '', port: int = 0, streamName: str = '', streamKey: str = '', hflip: int = 0, vflip: int = 0, **kwargs):
151
+ self.height = height
152
+ self.width = width
153
+ self.fps = fps
154
+ self.bitrate = bitrate
155
+ self.server = server
156
+ self.port = port
157
+ self.stream_name = streamName
158
+ self.stream_key = streamKey
159
+ self.hflip = hflip
160
+ self.vflip = vflip
161
+ # Optionally store any extra fields
162
+ self.extra_fields = kwargs
163
+
164
+
165
+ class RTMPArgs:
166
+
167
+ def __init__(self, height: int = 1920, width: int = 1080, fps: float = 30, bitrate: int = 5000000, server: str = '', port: int = 0, streamName: str = '', streamKey: str = '', hflip: int = 0, vflip: int = 0, **kwargs):
130
168
  self.height = height
131
169
  self.width = width
132
170
  self.fps = fps
@@ -137,11 +175,13 @@ class RTMPParameters:
137
175
  self.stream_key = streamKey
138
176
  self.hflip = hflip
139
177
  self.vflip = vflip
178
+ # Optionally store any extra fields
179
+ self.extra_fields = kwargs
140
180
 
141
181
 
142
182
  class File:
143
183
 
144
- def __init__(self, key: int = 0, userID: int = 0, deviceID: int = 0, filename: str = '', fileGUID: str = '', sHA256Hash: str = '', fileLocation: str = '', fileExpiration: str = '', fileSize: int = '', fileInS3: bool = False, creationDate: str = '', createdBy: int = '', lastModifiedDate: str = '', lastModifiedBy: int = 0):
184
+ def __init__(self, key: int = 0, userID: int = 0, deviceID: int = 0, filename: str = '', fileGUID: str = '', sHA256Hash: str = '', fileLocation: str = '', fileExpiration: str = '', fileSize: int = '', fileInS3: bool = False, creationDate: str = '', createdBy: int = '', lastModifiedDate: str = '', lastModifiedBy: int = 0, **kwargs):
145
185
  self.key = key
146
186
  self.userID = userID
147
187
  self.deviceID = deviceID
@@ -156,11 +196,13 @@ class File:
156
196
  self.createdBy = createdBy
157
197
  self.lastModifiedDate = lastModifiedDate
158
198
  self.lastModifiedBy = lastModifiedBy
199
+ # Optionally store any extra fields
200
+ self.extra_fields = kwargs
159
201
 
160
202
 
161
203
  class VideoClip:
162
204
 
163
- def __init__(self, key: int = 0, userID: int = 0, deviceID: int = 0, fileID: int = 0, tsFileID: int = 0, videoClipTypeID: int = 1, videoClipStatus: int = 0, videoClipParameters: str = '', localFilePath: str = '', height: int = 0, width: int = 0, fileSize: int = 0, framesPerSecond: float = 0, bitrate: int = 0, audioStatus: int = 0, startTime: int = 0, startTimeMs: int = 0, endTime: int = 0, endTimeMs: int = 0, clipLengthInSeconds: float = 0, tagListID: int = 0, creationDate: str = '', createdBy: int = 0, lastModifiedDate: int = '', lastModifiedBy: int = 0):
205
+ def __init__(self, key: int = 0, userID: int = 0, deviceID: int = 0, fileID: int = 0, tsFileID: int = 0, videoClipTypeID: int = 1, videoClipStatus: int = 0, videoClipParameters: str = '', localFilePath: str = '', height: int = 0, width: int = 0, fileSize: int = 0, framesPerSecond: float = 0, bitrate: int = 0, audioStatus: int = 0, startTime: int = 0, startTimeMs: int = 0, endTime: int = 0, endTimeMs: int = 0, clipLengthInSeconds: float = 0, tagListID: int = 0, creationDate: str = '', createdBy: int = 0, lastModifiedDate: int = '', lastModifiedBy: int = 0, **kwargs):
164
206
  self.videoClipID = key
165
207
  self.userID = userID
166
208
  self.deviceID = deviceID
@@ -186,22 +228,40 @@ class VideoClip:
186
228
  self.createdBy = createdBy
187
229
  self.lastModifiedDate = lastModifiedDate
188
230
  self.lastModifiedBy = lastModifiedBy
231
+ # Optionally store any extra fields
232
+ self.extra_fields = kwargs
189
233
 
190
234
 
235
+ # Deprecated
191
236
  class TranscodingParameters:
192
237
 
193
- def __init__(self, fileID: int, source: str, sourceFile: str, targetFile: str, fps: float, codec: str):
238
+ def __init__(self, fileID: int, source: str, sourceFile: str, targetFile: str, fps: float, codec: str, **kwargs):
194
239
  self.fileID = fileID
195
240
  self.source = source
196
241
  self.sourceFile = sourceFile
197
242
  self.targetFile = targetFile
198
243
  self.fps = fps
199
244
  self.codec = codec
245
+ # Optionally store any extra fields
246
+ self.extra_fields = kwargs
247
+
248
+
249
+ class TranscodingArgs:
250
+
251
+ def __init__(self, fileID: int, source: str, sourceFile: str, targetFile: str, fps: float, codec: str, **kwargs):
252
+ self.fileID = fileID
253
+ self.source = source
254
+ self.sourceFile = sourceFile
255
+ self.targetFile = targetFile
256
+ self.fps = fps
257
+ self.codec = codec
258
+ # Optionally store any extra fields
259
+ self.extra_fields = kwargs
200
260
 
201
261
 
202
262
  class TransferArgs:
203
263
 
204
- def __init__(self, fileID: int, videoClipID: int, localFilePath: str, remoteFilename: str, remoteFolderPath: str, url: str, action: str, attemptNumber: int, maxAttempts: int, firstAttemptStartTime: int, maxTimeToTryInSeconds: int):
264
+ def __init__(self, fileID: int, videoClipID: int, localFilePath: str, remoteFilename: str, remoteFolderPath: str, url: str, action: str, attemptNumber: int, maxAttempts: int, firstAttemptStartTime: int, maxTimeToTryInSeconds: int, **kwargs):
205
265
  self.fileID = fileID
206
266
  self.videoClipID = videoClipID
207
267
  self.localFilePath = localFilePath
@@ -213,11 +273,13 @@ class TransferArgs:
213
273
  self.maxAttempts = maxAttempts
214
274
  self.firstAttemptStartTime = firstAttemptStartTime,
215
275
  self.maxTimeToTryInSeconds = maxTimeToTryInSeconds
276
+ # Optionally store any extra fields
277
+ self.extra_fields = kwargs
216
278
 
217
279
 
218
280
  class ConcatenateClipsArgs:
219
281
 
220
- def __init__(self, deviceID: int, deviceName: str, startEpoch: int, endEpoch: int, uploadURL: str, postbackURL: str, videoClips: list[VideoClip]):
282
+ def __init__(self, deviceID: int, deviceName: str, startEpoch: int, endEpoch: int, uploadURL: str, postbackURL: str, videoClips: list[VideoClip], **kwargs):
221
283
  self.deviceID = deviceID
222
284
  self.deviceName = deviceName
223
285
  self.startEpoch = startEpoch
@@ -225,11 +287,13 @@ class ConcatenateClipsArgs:
225
287
  self.uploadURL = uploadURL
226
288
  self.postbackURL = postbackURL
227
289
  self.videoClips = videoClips
290
+ # Optionally store any extra fields
291
+ self.extra_fields = kwargs
228
292
 
229
293
 
230
294
  class ConferenceArgs:
231
295
 
232
- def __init__(self, url: str, roomName: str, displayName: str, videoWidth: int = 1280, videoHeight: int = 720, framerate: float = 30, videoBitrate: int = 1000000, sendVideo: bool = True, sendAudio: bool = True, receiveVideo: bool = True, receiveAudio: bool = True):
296
+ def __init__(self, url: str, roomName: str, displayName: str, videoWidth: int = 1280, videoHeight: int = 720, framerate: float = 30, videoBitrate: int = 1000000, sendVideo: bool = True, sendAudio: bool = True, receiveVideo: bool = True, receiveAudio: bool = True, **kwargs):
233
297
  self.url = url
234
298
  self.roomName = roomName
235
299
  self.displayName = displayName
@@ -241,43 +305,41 @@ class ConferenceArgs:
241
305
  self.sendAudio = sendAudio
242
306
  self.receiveVideo = receiveVideo
243
307
  self.receiveAudio = receiveAudio
308
+ # Store or ignore unknown fields
309
+ self.extra_fields = kwargs # Optionally, store unknown fields for debugging or logging
244
310
 
245
311
 
246
312
  class EpochRange:
247
313
 
248
- def __init__(self, startEpoch: int, endEpoch: int):
314
+ def __init__(self, startEpoch: int, endEpoch: int, **kwargs):
249
315
  self.startEpoch = startEpoch
250
316
  self.endEpoch = endEpoch
317
+ # Optionally store any extra fields
318
+ self.extra_fields = kwargs
251
319
 
252
320
 
253
321
  class WifiConnection:
254
322
 
255
- def __init__(self, ssid: str = '', connectionName: str = '', password: str = '', priority: int = 0):
323
+ def __init__(self, ssid: str = '', connectionName: str = '', password: str = '', priority: int = 0, **kwargs):
256
324
  self.ssid = ssid
257
325
  self.password = password
258
326
  self.priority = priority
259
327
  self.connection_name = connectionName
328
+ # Optionally store any extra fields
329
+ self.extra_fields = kwargs
260
330
 
261
331
  class NameValuePair:
262
332
 
263
- def __init__(self, name: str, value: str):
333
+ def __init__(self, name: str, value: str, **kwargs):
264
334
  self.name = name
265
335
  self.value = value
336
+ # Optionally store any extra fields
337
+ self.extra_fields = kwargs
266
338
 
267
339
 
268
340
  class EventDetails:
269
- eventID: int
270
- eventStatus: int
271
- eventParameters: str
272
- result: str
273
- percentComplete: float
274
- priority: int
275
- attemptNumber: int
276
- maxAttempts: int
277
- tagString: str
278
- tagNumber: int
279
-
280
- def __init__(self, eventID: int = None, eventStatus: int = None, eventParameters: str = None, result: str = None, percentComplete: float = None, priority: int = None, attemptNumber: int = None, maxAttempts: int = None, tagString: str = None, tagNumber: int = None):
341
+
342
+ def __init__(self, eventID: int = None, eventStatus: int = None, eventParameters: str = None, result: str = None, percentComplete: float = None, priority: int = None, attemptNumber: int = None, maxAttempts: int = None, tagString: str = None, tagNumber: int = None, **kwargs):
281
343
  self.eventID = eventID
282
344
  self.eventStatus = eventStatus
283
345
  self.eventParameters = eventParameters
@@ -288,18 +350,22 @@ class EventDetails:
288
350
  self.maxAttempts = maxAttempts
289
351
  self.tagString = tagString
290
352
  self.tagNumber = tagNumber
353
+ # Optionally store any extra fields
354
+ self.extra_fields = kwargs
291
355
 
292
356
 
293
357
  class StandardResult:
294
358
 
295
- def __init__(self, code: str, description: str):
359
+ def __init__(self, code: str, description: str, **kwargs):
296
360
  self.code = code
297
361
  self.description = description
362
+ # Optionally store any extra fields
363
+ self.extra_fields = kwargs
298
364
 
299
365
 
300
366
  class DeviceObject:
301
367
 
302
- def __init__(self, key: int = 0, deviceTypeID: int = 0, userID: int = 0, deviceName: str = '', serialNumber: str = '', deviceDescription: str = '', recentOutput: str = '', cameraStatus: str = '', lastIPAddress: str = '', tunnelIPAddress: str = '', lastHeardFromDate: datetime = datetime.now(), softwareDate: datetime = datetime.now(), location: str = '', setupStatus: int = 0, autoSendFiles: int = 0, runStartupEvent: int = 0, deviceReadyEventPresetID: int = 0, standaloneEventPresetID: int = 0, logHealth: int = 0, audioChannelName: str = '', volume: int = 0, commentListID = 0, isArchived: bool = False, gUID: str = '', creationDate: datetime = datetime.now(), createdBy: int = 0, lastModifiedDate: datetime = datetime.now(), lastModifiedBy: int = 0):
368
+ def __init__(self, key: int = 0, deviceTypeID: int = 0, userID: int = 0, deviceName: str = '', serialNumber: str = '', deviceDescription: str = '', recentOutput: str = '', cameraStatus: str = '', lastIPAddress: str = '', tunnelIPAddress: str = '', lastHeardFromDate: datetime = datetime.now(), softwareDate: datetime = datetime.now(), location: str = '', setupStatus: int = 0, autoSendFiles: int = 0, runStartupEvent: int = 0, deviceReadyEventPresetID: int = 0, standaloneEventPresetID: int = 0, logHealth: int = 0, audioChannelName: str = '', volume: int = 0, commentListID = 0, isArchived: bool = False, gUID: str = '', creationDate: datetime = datetime.now(), createdBy: int = 0, lastModifiedDate: datetime = datetime.now(), lastModifiedBy: int = 0, **kwargs):
303
369
  self.key = key
304
370
  self.deviceTypeID = deviceTypeID
305
371
  self.userID = userID
@@ -328,11 +394,13 @@ class DeviceObject:
328
394
  self.createdBy = createdBy
329
395
  self.lastModifiedDate = lastModifiedDate
330
396
  self.lastModifiedBy = lastModifiedBy
397
+ # Optionally store any extra fields
398
+ self.extra_fields = kwargs
331
399
 
332
400
 
333
401
  class VideoClip:
334
402
 
335
- def __init__(self, key: int = 0, userID: int = 0, deviceID: int = 0, fileID: int = 0, tSFileID: int = 0, videoClipStatus: int = 0, videoClipTypeID: int = 0, videoClipParameters: str = '', localFilePath: str = '', height: int = 0, width: int = 0, filesize: int = 0, framesPerSecond: float = 0, bitrate: int = 0, audioStatus: int = 0, startTime: int = 0, startTimeMs: int = 0, endTime: int = 0, endTimeMs: int = 0, clipLengthInSeconds: float = 0, tagListID: int = 0, creationDate: str = '', createdBy: int = 0, lastModifiedDate: int = '', lastModifiedBy: int = 0):
403
+ def __init__(self, key: int = 0, userID: int = 0, deviceID: int = 0, fileID: int = 0, tSFileID: int = 0, videoClipStatus: int = 0, videoClipTypeID: int = 0, videoClipParameters: str = '', localFilePath: str = '', height: int = 0, width: int = 0, filesize: int = 0, framesPerSecond: float = 0, bitrate: int = 0, audioStatus: int = 0, startTime: int = 0, startTimeMs: int = 0, endTime: int = 0, endTimeMs: int = 0, clipLengthInSeconds: float = 0, tagListID: int = 0, creationDate: str = '', createdBy: int = 0, lastModifiedDate: int = '', lastModifiedBy: int = 0, **kwargs):
336
404
  self.videoClipID = key
337
405
  self.userID = userID
338
406
  self.deviceID = deviceID
@@ -358,11 +426,13 @@ class VideoClip:
358
426
  self.createdBy = createdBy
359
427
  self.lastModifiedDate = lastModifiedDate
360
428
  self.lastModifiedBy = lastModifiedBy
429
+ # Optionally store any extra fields
430
+ self.extra_fields = kwargs
361
431
 
362
432
 
363
433
  class CreateVideoClip:
364
434
 
365
- def __init__(self, deviceID: int = 0, deviceName: str = '', localFilePath: str = '', height: int = 0, width: int = 0, framesPerSecond: float = 0.0, startTime: int = 0, startTimeMs: int = 0, clipLengthInSeconds: float = 0.0, videoClipStatus: int = 0, videoClipTypeID: int = 0, videoClipParameters: str = ''):
435
+ def __init__(self, deviceID: int = 0, deviceName: str = '', localFilePath: str = '', height: int = 0, width: int = 0, framesPerSecond: float = 0.0, startTime: int = 0, startTimeMs: int = 0, clipLengthInSeconds: float = 0.0, videoClipStatus: int = 0, videoClipTypeID: int = 0, videoClipParameters: str = '', **kwargs):
366
436
  self.deviceID = deviceID
367
437
  self.deviceName = deviceName
368
438
  self.localFilePath = localFilePath
@@ -375,4 +445,6 @@ class CreateVideoClip:
375
445
  self.videoClipStatus = videoClipStatus
376
446
  self.videoClipTypeID = videoClipTypeID
377
447
  self.videoClipParameters = videoClipParameters
448
+ # Optionally store any extra fields
449
+ self.extra_fields = kwargs
378
450
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "actionstreamer"
3
- version = "1.2.2"
3
+ version = "1.2.4"
4
4
  description = "A library for the ActionStreamer API."
5
5
  authors = ["ActionStreamer <joe@actionstreamer.com>"]
6
6
  readme = "README.md"
File without changes