PCResourceItem

Version 1.4 - Updated on 9/23/2016

Superclass: NSObject
Declared In: PCResourceItem.h

Contents

Introduction

This class stores the metadata information of a ResourceItem, such as a file or a folder.

Methods

initWithDBResourceID

- (id)initWithDBResourceID:(NSManagedObjectID *)managedObjectID; 
  • Discussion
    Call this methods to create a PCResourceItem using a managedObjectID. managedObjectID is mapped withcoredataobject and aPCResourceItem` is created out of the values copied from the coredata object.

Properties

checkSum

@property (nonatomic,
    readonly,
    copy) NSString *checkSum;
  • Discussion
    The file content’s SHA-256 checksum value.

contentToken

@property (nonatomic,
    readonly,
    copy) NSString *contentToken;
  • Discussion
    A unique string representing the file. contentToken changes when the file content is updated. Required for certain APIs, such as GET /thumbnails.

deleted

@property (nonatomic,
    readonly,
    strong) NSNumber *deleted; 
  • Discussion
    If true, the file has been logically deleted.

extension

@property (nonatomic,
    readonly,
    copy) NSString *extension;
  • Discussion
    The file’s extension, as extracted from the filename.

fullPath

@property (nonatomic,
    readonly,
    copy) NSString *fullPath; 
  • Discussion
    The full path to a file or a folder.

name

@property (nonatomic,
    readonly,
    copy) NSString *name; 
  • Discussion
    The name of the file.

parentPath

@property (nonatomic,
    readonly,
    copy) NSString *parentPath; 
  • Discussion
    The folder where the file is located.

size

@property (nonatomic,
    readonly,
    strong) NSNumber *size;
  • Discussion
    The size of the file, in bytes.

tags

@property (nonatomic,
    readonly,
    copy) NSString *tags; 
  • Discussion
    The tags set for the resource.

uri

@property (nonatomic,
    readonly,
    copy) NSString *uri; 
  • Discussion
    Unique identifier of the resource.

version

@property (nonatomic,
    readonly,
    strong) NSNumber *version;
  • Discussion
    File version. This number increases when the file is updated.

versionCreated

@property (nonatomic,
    readonly,
    strong) NSDate *versionCreated;
  • Discussion
    Creation timestamp for the file’s current version, in ISO-8601 format.

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.