Protobuf update

This commit is contained in:
2025-07-14 02:13:51 +08:00
parent 007da589bf
commit 387246a95c
6 changed files with 302 additions and 28 deletions

View File

@ -20,9 +20,9 @@ public class CloudFileReferenceObject : ModelBase, ICloudFile
/// <summary>
/// Converts the current object to its protobuf representation
/// </summary>
public global::DysonNetwork.Shared.Proto.CloudFileReferenceObject ToProtoValue()
public Proto.CloudFile ToProtoValue()
{
var proto = new global::DysonNetwork.Shared.Proto.CloudFileReferenceObject
var proto = new Proto.CloudFile
{
Id = Id,
Name = Name,
@ -30,7 +30,6 @@ public class CloudFileReferenceObject : ModelBase, ICloudFile
Hash = Hash ?? string.Empty,
Size = Size,
HasCompression = HasCompression,
// Backward compatibility fields
ContentType = MimeType ?? string.Empty,
Url = string.Empty // This should be set by the caller if needed
};