DeviceApi class
A class to handle API interactions related to devices.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
{required String id}) → Future< ApiResponseModel< bool?> > - Deletes a device.
-
get(
{required String deviceId}) → Future< ApiResponseModel< DeviceModel?> > - Gets device information by device ID.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
{required String deviceId, required DeviceType type, String? notificationToken, String? companyId}) → Future< ApiResponseModel< DeviceModel?> > - Registers a new device.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateToken(
{required String deviceId, required String notificationToken}) → Future< ApiResponseModel< DeviceModel?> > - Updates the notification token for a device.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited