public sealed class ListDeviceStatesResponse : IMessage<ListDeviceStatesResponse>, IEquatable<ListDeviceStatesResponse>, IDeepCloneable<ListDeviceStatesResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class ListDeviceStatesResponse.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eListDeviceStatesResponse\u003c/code\u003e class within the Cloud IoT v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListDeviceStatesResponse\u003c/code\u003e class is designed to handle the response for the \u003ccode\u003eListDeviceStates\u003c/code\u003e method, which retrieves a list of device states.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eListDeviceStatesResponse\u003c/code\u003e is 2.2.0, but 5 previous versions are also available, with version 1.0.0 being the oldest.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeviceStates\u003c/code\u003e property of \u003ccode\u003eListDeviceStatesResponse\u003c/code\u003e provides access to a collection of \u003ccode\u003eDeviceState\u003c/code\u003e objects, ordered from the most recent to the oldest.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Class ListDeviceStatesResponse (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.ListDeviceStatesResponse)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.ListDeviceStatesResponse)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.ListDeviceStatesResponse)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.ListDeviceStatesResponse)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.ListDeviceStatesResponse)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.ListDeviceStatesResponse) \n\n public sealed class ListDeviceStatesResponse : IMessage\u003cListDeviceStatesResponse\u003e, IEquatable\u003cListDeviceStatesResponse\u003e, IDeepCloneable\u003cListDeviceStatesResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud IoT v1 API class ListDeviceStatesResponse.\n\nResponse for `ListDeviceStates`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListDeviceStatesResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListDeviceStatesResponse](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.ListDeviceStatesResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListDeviceStatesResponse](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.ListDeviceStatesResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListDeviceStatesResponse](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.ListDeviceStatesResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Iot.V1](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Iot.V1.dll\n\nConstructors\n------------\n\n### ListDeviceStatesResponse()\n\n public ListDeviceStatesResponse()\n\n### ListDeviceStatesResponse(ListDeviceStatesResponse)\n\n public ListDeviceStatesResponse(ListDeviceStatesResponse other)\n\nProperties\n----------\n\n### DeviceStates\n\n public RepeatedField\u003cDeviceState\u003e DeviceStates { get; }\n\nThe last few device states. States are listed in descending order of server\nupdate time, starting from the most recent one."]]