DeviceRepository.GetPhotoThumbnailInfo Method

Gets the photo thumbnail information.

Namespace: Gamanet.C4.SDK
Assembly: Gamanet.C4.SimpleClient (in Gamanet.C4.SimpleClient.dll) Version: 2026.0.0.733
Syntax
C#
public MetadataV1 GetPhotoThumbnailInfo(
	Guid deviceId
)

Parameters

deviceId  Guid
The device identifier.

Return Value

MetadataV1
Metadata

Implements

ISimpleClientDeviceRepositoryV1.GetPhotoThumbnailInfo(Guid)
Example
The following example illustrates how the SimpleClient get device photo thumbnail info.
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 Device
        var exampleBusDevice = new SimpleDeviceV1(
            Guid.NewGuid(),
            "BUS",
            EntityRoot.Device,
            Guid.Parse("9c2246aa-5d43-414f-85d4-8c3b4e657236")
        );

        // Create device under device root in db
        client.Devices.Create(exampleBusDevice);

        // Assign photo to device
        client.Devices.CreatePhoto(exampleBusDevice.Id, photo);

        var loadedExamplePhotoThumbnailInfo = client.Devices.GetPhotoThumbnailInfo(exampleBusDevice.Id);

        foreach (var photoInfo in loadedExamplePhotoThumbnailInfo.Data)
        {
            Console.WriteLine(photoInfo);
        }

        // Disconnect from server
        client.Disconnect();
    }
}
See Also

Reference

DeviceRepository Class
Gamanet.C4.SDK Namespace