-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from deprecation import deprecated | ||
|
||
|
||
@deprecated( | ||
deprecated_in='1.0.0.dev1', | ||
details='This enum is no longer supported.', | ||
) | ||
class StreamType: | ||
def __init__(self): | ||
self._stream_type = 0 | ||
|
||
@property | ||
def live_stream(self): | ||
self._stream_type = 3 | ||
return self | ||
|
||
@property | ||
def local_stream(self): | ||
self._stream_type = 10 | ||
return self | ||
|
||
""" | ||
*** Pulse Stream *** | ||
Send bytes like a pulsation, and this reduce the slice, | ||
because the slice is too heavy | ||
Support: LiveStream, LocalStream | ||
""" | ||
@property | ||
def pulse_stream(self): | ||
self._stream_type = 4 | ||
return self | ||
|
||
@property | ||
def stream_mode(self): | ||
return self._stream_type |