PCResource

Version 1.5 - Updated on 10/20/2016

Superclass: NSObject
Declared In: PCResource.h

Contents

Introduction

This class stores the metadata information of a file or a folder.

Methods

initWithDBResourceID:

- (id)initWithDBResourceID:(NSManagedObjectID *)managedObjectID; 
  • Discussion
    Call this method to create a PCResource using a managedObjectID. managedObjectID is mapped with coredata object and a PCResource is created out of the values copied from the coredata object.

Properties

album

@property (nonatomic,
    readonly,
    copy) NSString *album; 
  • Discussion
    Maps to the ID3 album field for MP3 files.

artist

@property (nonatomic,
    readonly,
    copy) NSString *artist; 
  • Discussion
    Maps to the ID3 artist field for MP3 files.

capturedDate

@property (nonatomic,
    readonly,
    strong) NSDate *capturedDate; 
  • Discussion
    Maps to the file’s EXIF Date and Time tag.

checkSum

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

contentToken

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

contentType

@property (nonatomic,
    readonly,
    copy) NSString *contentType; 
  • Discussion
    contentType of the file, such as png for an image file.

count

@property (nonatomic,
    readonly,
    strong) NSNumber *count; 
  • Discussion
    The number of items in the folder.

creationDate

@property (nonatomic,
    readonly,
    strong) NSDate *creationDate;
  • Discussion
    The date, in UTC format, when the file has been created. For example, when a desktop client uploads a photo originally taken on a camera, creationDate will differ from captureDate, while on a camera phone the two attributes are likely to match.

deleted

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

duration

@property (nonatomic,
    readonly,
    strong) NSNumber *duration;
  • Discussion
    The duration of an audio file.

extension

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

file

@property (nonatomic,
    readonly,
    strong) NSNumber *file;
  • Discussion
    True indicates that the resource is a file.

fullPath

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

genre

@property (nonatomic,
    readonly,
    copy) NSString *genre;
  • Discussion
    Maps to the ID3 genre field for MP3 files.

geoLatitude

@property (nonatomic,
    readonly,
    strong) NSNumber *geoLatitude; 
  • Discussion
    Maps to the EXIF GPS Latitude tag for image files

geoLongitude

@property (nonatomic,
    readonly,
    strong) NSNumber *geoLongitude; 
  • Discussion
    Maps to the EXIF GPS Longitude tag of image files.

height

@property (nonatomic,
    readonly,
    strong) NSNumber *height; 
  • Discussion
    The height of an image in pixels.

itemUID

@property (nonatomic,
    readonly,
    copy) NSString *itemUID; 
  • Discussion
    The unique ID of an item in a playlist.

locationCountry

@property (nonatomic,
    readonly,
    copy) NSString *locationCountry;
  • Discussion
    County

locationLocality

@property (nonatomic,
    readonly,
    copy) NSString *locationLocality;
  • Discussion
    City, town, village or general locality.

locationRegion

@property (nonatomic,
    readonly,
    copy) NSString *locationRegion;
  • Discussion
    State, province or general region.

mimeType

@property (nonatomic,
    readonly,
    copy) NSString *mimeType;
  • Discussion
    Specifies the content type of the file.

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.

timelineDate

@property (nonatomic,
    readonly,
    strong) NSDate *timelineDate; 
  • Discussion
    Specifies where a media file should appear in a timeline view on a client application.

title

@property (nonatomic,
    readonly,
    copy) NSString *title;
  • Discussion
    Maps to the ID3 title field for MP3 files.

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 of the file’s current version, in ISO-8601 format.

width

@property (nonatomic,
    readonly,
    strong) NSNumber *width;
  • Discussion
    The width of an image in pixels.

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