Skip to content

Commit

Permalink
Add missing properties to StorageObject & Apply recommends from Bunny…
Browse files Browse the repository at this point in the history
  • Loading branch information
OhSoooLucky committed Mar 6, 2023
1 parent b203ced commit 5341d2c
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions BunnyCDN.Net.Storage/Models/StorageObject.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BunnyCDN.Net.Storage.Models
{
Expand All @@ -9,15 +7,24 @@ public class StorageObject
/// <summary>
/// The unique GUID of the file
/// </summary>
public string Guid { get; set; }
public Guid Guid { get; set; }
/// <summary>
/// The ID of the BunnyCDN user that holds the file
/// </summary>
public string UserId { get; set; }
public Guid UserId { get; set; }
/// <summary>
/// The date when the file was created
/// </summary>
public DateTime DateCreated { get; set; }
/// <summary>
/// Content type of the stoage object
/// </summary>
public string ContentType { get; set; }
public int ArrayNumber { get; set; }
/// <summary>
/// File checksum for integrity validation
/// </summary>
public string Checksum { get; set; }

/// <summary>
/// The date when the file was last modified
Expand All @@ -28,6 +35,10 @@ public class StorageObject
/// </summary>
public string StorageZoneName { get; set; }
/// <summary>
/// Replicated zone names
/// </summary>
public string ReplicatedZones { get; set; }
/// <summary>
/// The path to the object
/// </summary>
public string Path { get; set; }
Expand All @@ -38,19 +49,19 @@ public class StorageObject
/// <summary>
/// The total of the object in bytes
/// </summary>
public long Length { get; set; }
public ulong Length { get; set; }
/// <summary>
/// True if the object is a directory
/// </summary>
public bool IsDirectory { get; set; }
/// <summary>
/// The ID of the storage server that the file resides on
/// </summary>
public int ServerId { get; set; }
public uint ServerId { get; set; }
/// <summary>
/// The ID of the storage zone that the object is linked to
/// </summary>
public long StorageZoneId { get; set; }
public ulong StorageZoneId { get; set; }

/// <summary>
/// Gets the full path to the file
Expand Down

0 comments on commit 5341d2c

Please sign in to comment.