ZDCStorageBill

@interface ZDCStorageBill : NSObject

Represents the storage tally for a specific {app, storageType} tuple. Instances of this class are created via ZDCAppBill.

  • The number of bytes that are currently being stored on the server (as of the ZDCAppBill timestamp).

    Declaration

    Objective-C

    @property (readonly, nonatomic) uint64_t byteCount;

    Swift

    var byteCount: UInt64 { get }
  • Representes the byte hours used so far (as of the ZDCAppBill timestamp).

    A byte hour is analogous to a kilowatt hour. It means: 1 byte stored for 1 hour. It represents the basic unit of measurement for cloud storage.

    Since storage is so cheap, you will often see billing rates expressed in gigabyte month. For example: $0.023 per GiB/m, which means 2.3 cents per gigabyte month.

    The conversion from byte/hour to GiB/month is as you would expect:

     byte_month = byte_hour / hours_in_month
     GiB_month = byte_month / GiB_in_bytes
    

    Declaration

    Objective-C

    @property (readonly, nonatomic) double byteHours;

    Swift

    var byteHours: Double { get }