using FrostFS.SDK.ModelsV2.Enums; namespace FrostFS.SDK.ModelsV2; public class ObjectAttribute { public string Key { get; set; } public string Value { get; set; } public ObjectAttribute(string key, string value) { Key = key; Value = value; } } public class ObjectHeader { public ObjectAttribute[] Attributes { get; set; } public ContainerId ContainerId { get; set; } public long Size { get; set; } public ObjectType ObjectType { get; set; } public Version Version { get; set; } public ObjectHeader( ContainerId containerId, ObjectType type = ObjectType.Regular, params ObjectAttribute[] attributes ) { Attributes = attributes; ContainerId = containerId; ObjectType = type; } } public class Object { public ObjectHeader Header { get; set; } public ObjectId ObjectId { get; set; } public byte[] Payload { get; set; } }