Item
The RItem class is used to describe a cloud item. When you call the method to get all items on a Cloud Service, you would get an array of RItem objects. We create an instance of that class by calling the init method:
iOS:
RItem *item = [[RItem alloc]init];
Android:
RItem item = new RItem();
The RItem class has the following properties:
- name[(NS)String]: The name of the item
- uploadName[(NS)String]: This is the name that is used when we upload a file to Cloud Service. By default it is equal to the name
- size[(NS)String]: A string describing the size of the item (only for files, it is empty string for folders)
- actualSize[long]: The size of the file in bytes
- downloadUrl[(NS)String]: The URL to download the file from
- isFile[BOOL/boolean]: A flag indicating if the item is a file or a folder
- isDateCreatedAvail[BOOL/boolean]: If that flag is true, then the next property is not nil
- dateCreated[(NS)Date]: The creation date of the item
- isDateModifiedAvail[BOOL/boolean]: If that flag is true, then the next property is not nil
- dateModified[(NS)Date]: When was the item modified
- path[(NS)String]:This is the ID of the item. We call it path because this property is used when we navigate between folders
- actionToBePerformed[ItemsActions]: Which action the SDK should perform on that file: isCopy (Default), iaMove, iaDelete, iaShare. Only the 1st and the 3rd are used in the SDK.
- localFileName[(NS)String]: It is a guid
- fileIsAvailable[BOOL/boolean]: Not used in the SDK
Also, the class has the method “reasonFileIsNotAvailable”. This method is not currently used in the SDK, but you may find it useful. For example, you may set the fileIsAvailable flag to false, and this method will describe the reason for that decision.