MeData
MeData
API
public struct MeData : Codable {
public var meDataDefinitionId: String
public var name: String
public var firstValueSaveDate: Int64
public var lastValueSaveDate: Int64
public var lastValueId: String
public var meDataValueInfo: [DSSDK.MeDataValueInfo]
public func getLastValue() -> DSSDK.MeDataValueInfo?
public func getAllValues() -> [DSSDK.MeDataValueInfo]
/// Encodes this value into the given encoder.
///
/// If the value fails to encode anything, `encoder` will encode an empty
/// keyed container in its place.
///
/// This function throws an error if any values are invalid for the given
/// encoder's format.
///
/// - Parameter encoder: The encoder to write data to.
public func encode(to encoder: any Encoder) throws
/// Creates a new instance by decoding from the given decoder.
///
/// This initializer throws an error if reading from the decoder fails, or
/// if the data read is corrupted or otherwise invalid.
///
/// - Parameter decoder: The decoder to read data from.
public init(from decoder: any Decoder) throws
}
Public Functions
public func getLastValue() -> DSSDK.MeDataValueInfo?
public func getAllValues() -> [DSSDK.MeDataValueInfo]
public func encode(to encoder: any Encoder) throws