Device |
Retrieves photo metadata information for all devices with photos.
Namespace: Gamanet.C4.SDK
Assembly: Gamanet.C4.SimpleClient (in Gamanet.C4.SimpleClient.dll) Version: 2026.0.0.733
Syntax
C#
public ISimpleCollection<MetadataV1> GetAllPhotoInfo()
Return Value
ISimpleCollection<MetadataV1>A collection of photo metadata.
Implements
ISimpleClientDeviceRepositoryV4.GetAllPhotoInfo()Example
This example demonstrates how to retrieve photo information for devices with photos.
C#
using System; using Gamanet.C4.SDK; using Gamanet.C4.SimpleInterfaces; public class Example { static void Main() { // Create instance of simple client var client = new SimpleClient(ConnectorConfiguration.HttpClient); ConnectionInfoV1 token; // Connect to local server var connectionResult = client.Connect(new Uri("https://localhost/"), "Support", "support", out token); if (connectionResult != ConnectionResult.Successful) { Console.WriteLine("Connection unsuccessful, result: {0}", connectionResult); return; } Console.WriteLine("Connection result: {0}", connectionResult); Console.WriteLine(); // Create the Example Devices var exampleDevice1 = new SimpleDeviceV1( Guid.NewGuid(), "BUS with photo", EntityRoot.Device, Guid.Parse("9c2246aa-5d43-414f-85d4-8c3b4e657236") ); var exampleDevice2 = new SimpleDeviceV1( Guid.NewGuid(), "BUS without photo", EntityRoot.Device, Guid.Parse("9c2246aa-5d43-414f-85d4-8c3b4e657236") ); // Add devices to the database client.Devices.Create(exampleDevice1); client.Devices.Create(exampleDevice2); // Add a photo for Example Device 1 client.Devices.CreatePhoto(exampleDevice1.Id, photo); // Retrieve photo information for all devices var result = client.Devices.GetAllPhotoInfo(); // Disconnect from server client.Disconnect(); } }
See Also