DeviceRepository Class

Device Repository provides CRUD operations for devices
Inheritance Hierarchy
System.Object
  Gamanet.C4.SDK.DeviceRepository
    Gamanet.C4.SDK.DeviceRepositoryV2

Namespace: Gamanet.C4.SDK
Assembly: Gamanet.C4.SimpleClient (in Gamanet.C4.SimpleClient.dll) Version: 2026.0.0.733
Syntax
C#
public class DeviceRepository : ISimpleClientDeviceRepositoryV1, 
	IFilterable<SimpleDeviceV1, Guid>, IEntitySourceRepository<SimpleDeviceV1>

The DeviceRepository type exposes the following members.

Methods
 NameDescription
Public methodCode exampleArchiveArchive existing device. All child devices in tree are archived too.
Public methodCode exampleCreateCreate new device.
Public methodCode exampleCreateAndGet Create and get device
Public methodCode exampleCreatePhoto Creates the photo.
Public methodCode exampleDelete Delete existing device. All child devices in tree are deleted too.
Public methodCode exampleDeletePhoto Deletes the photo.
Public methodFilter(Guid, IDictionary<String, Object>)Filter all devices.
Public methodFilter(Guid, IDictionary<String, Object>, Int32, Guid)Filter all devices.
Public methodCode exampleGet(Guid, Properties)Get the specified device by identifier with specified properties.
Public methodCode exampleGet(Guid, String)Get the specified device by identifier with specified prefix properties.
Public methodCode exampleGetAll()Gets all devices with none data under Device root, included Device root (Access Levels are excluded).
Public methodCode exampleGetAll(Guid, Properties)Get all devices under specified root with specified properties.
Public methodCode exampleGetAll(Guid, String)Get all devices under specified root with specified prefix properties.
Public methodCode exampleGetAll(Guid, Properties, Boolean) GetAll
Public methodCode exampleGetAll(Guid, String, Boolean) GetAll
Public methodCode exampleGetPhoto Gets the photo.
Public methodCode exampleGetPhotoInfo Gets the photo information.
Public methodGetPhotoThumbnail Gets the photo thumbnail.
Public methodCode exampleGetPhotoThumbnailInfo Gets the photo thumbnail information.
Public methodCode exampleImportImport the list of devices. If a device already exists, it will be updated and if it does not exist, it will be created.
Public methodCode exampleRestoreRestore existing devices by restore mode.
Public methodSearchSearche device ids.
Public methodCode exampleUpdateUpdate existing device.
Public methodCode exampleUpdateAndGet Update and get device
Public methodCode exampleUpdatePhoto Updates the photo.
Top
Extension Methods
 NameDescription
Public Extension MethodCode exampleToInvariantString To the invariant string.
(Defined by Extensions)
Top
See Also

Reference

Gamanet.C4.SDK Namespace