Models
Models used for communication with the REST API.
- class pymirokai.models.data_models.BoolCommand(**data)
Bases:
BaseModelRepresents a command associated with a Boolean value.
This model is crucial for enabling or disabling features through API commands, such as toggling settings.
- Parameters:
command (str)
value (bool)
-
command:
str The command to be executed.
-
value:
bool The Boolean state (True or False) that the command will apply.
- class pymirokai.models.data_models.Coordinates(**data)
Bases:
BaseModelDefines a set of coordinates in a three-dimensional space along with an orientation.
This model is used to represent spatial data with an optional rotational component, which is crucial for navigation and positioning tasks in a 3D environment.
- Parameters:
x (float)
y (float)
z (float)
theta (float)
-
theta:
float The rotation around the Z-axis, in degrees. Default is 0.0.
- to_list()
Convert coordinates model to a [x, y, z] list.
- Return type:
list
-
x:
float The X-coordinate in space, representing horizontal movement (forward/backward). Default is 0.0.
-
y:
float The Y-coordinate in space, representing horizontal movement (left/right). Default is 0.0.
-
z:
float The Z-coordinate in space, representing vertical movement (up/down). Default is 0.0.
- class pymirokai.models.data_models.DepositZone(**data)
Bases:
RuneRepresents a deposit zone.
- Parameters:
id (str)
- class pymirokai.models.data_models.DictCommand(**data)
Bases:
BaseModelModels a command that involves dictionary data.
Often used for commands requiring key-value pair configurations, particularly when adjusting complex settings.
- Parameters:
command (str)
value (dict)
-
command:
str The command to be executed.
-
value:
dict The dictionary containing configuration data or parameters for the command.
- class pymirokai.models.data_models.EnchantedHuman(**data)
Bases:
RuneRepresents a rune representing a human.
- Parameters:
id (str)
- class pymirokai.models.data_models.EnchantedLocation(**data)
Bases:
RuneRepresents a rune representing a location.
- Parameters:
id (str)
- class pymirokai.models.data_models.EnchantedObject(**data)
Bases:
RuneRepresents a rune representing an object to grasp.
- Parameters:
id (str)
- class pymirokai.models.data_models.FloatCommand(**data)
Bases:
BaseModelDefines a command that includes a floating-point number.
Used for commands that involve precision settings or adjustments, such as configuring sensitivity levels.
- Parameters:
command (str)
value (float)
-
command:
str The command to be executed.
-
value:
float The floating-point number that specifies the command’s parameter.
- class pymirokai.models.data_models.IntCommand(**data)
Bases:
BaseModelEncapsulates a command that requires an integer value.
This model is used for commands that adjust settings or configure parameters represented as integers.
- Parameters:
command (str)
value (int)
-
command:
str The command to be executed.
-
value:
int The integer value necessary to carry out the command.
- class pymirokai.models.data_models.ListCommand(**data)
Bases:
BaseModelDescribes a command that involves a list of values.
This model is used for commands that need to handle multiple elements, such as configuring a series of actions or settings.
- Parameters:
command (str)
value (list)
-
command:
str The command name.
-
value:
list The list of values to be processed or configured by the command.
- class pymirokai.models.data_models.NoArgCommand(**data)
Bases:
BaseModelRepresents a command with no arguments.
This model is used for commands that do not require any parameters.
- Parameters:
command (str)
-
command:
str The command name.
- class pymirokai.models.data_models.Rune(**data)
Bases:
BaseModelRepresents a rune.
- Parameters:
id (str)
-
id:
str The run virtual id.
- class pymirokai.models.data_models.StrCommand(**data)
Bases:
BaseModelRepresents a command that involves a string value.
This model is used to process textual commands that modify settings or trigger actions within a system.
- Parameters:
command (str)
value (str)
-
command:
str The command to be executed.
-
value:
str The string value associated with the command.