using System; namespace FrostFS.SDK.ModelsV2; public class SplitId { private Guid id; public SplitId() { this.id = Guid.NewGuid(); } public SplitId(Guid guid) { this.id = guid; } private SplitId(byte[] binary) { this.id = new Guid(binary); } private SplitId(string str) { this.id = new Guid(str); } public static SplitId CreateFromBinary(byte[] binaryData) { return new SplitId(binaryData); } public static SplitId CreateFromString(string stringData) { return new SplitId(stringData); } public override string ToString() { return this.id.ToString(); } public byte[]? ToBinary() { if (this.id == Guid.Empty) return null; return this.id.ToByteArray(); } }