Skip to content

Commit

Permalink
Create stream_type.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xtsea authored Dec 23, 2023
1 parent 4ae0949 commit 1ed6830
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions RyuzakiLib/stream_type.py
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

0 comments on commit 1ed6830

Please sign in to comment.