{"id":672,"date":"2020-03-04T21:44:53","date_gmt":"2020-03-04T21:44:53","guid":{"rendered":"https:\/\/dev.i-smartcloud.com\/?page_id=672"},"modified":"2020-03-04T21:47:21","modified_gmt":"2020-03-04T21:47:21","slug":"item","status":"publish","type":"page","link":"https:\/\/dev.i-smartcloud.com\/index.php\/item\/","title":{"rendered":"Item"},"content":{"rendered":"\n<p>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:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iOS:\nRItem *item = [[RItem alloc]init];\nAndroid:\nRItem item = new RItem();<\/code><\/pre>\n\n\n\n<p>The RItem class has the following properties:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>name<\/strong>[(NS)String]: The name of the item<\/li><li><strong>uploadName<\/strong>[(NS)String]: This is the name that is used when we upload a file to Cloud Service. By default it is equal to the <strong>name<\/strong><\/li><li><strong>size<\/strong>[(NS)String]: A string describing the size of the item (only for files, it is empty string for folders)<\/li><li><strong>actualSize<\/strong>[long]: The size of the file in bytes<\/li><li><strong>downloadUrl<\/strong>[(NS)String]: The URL to download the file from<\/li><li><strong>isFile<\/strong>[BOOL\/boolean]: A flag indicating if the item is a file or a folder<\/li><li><strong>isDateCreatedAvail<\/strong>[BOOL\/boolean]: If that flag is true, then the next property is not nil<\/li><li><strong>dateCreated<\/strong>[(NS)Date]: The creation date of the item<\/li><li><strong>isDateModifiedAvail<\/strong>[BOOL\/boolean]: If that flag is true, then the next property is not nil<\/li><li><strong>dateModified<\/strong>[(NS)Date]: When was the item modified<\/li><li><strong>path<\/strong>[(NS)String]:This is the ID of the item. We call it path because this property is used when we navigate between folders<\/li><li><strong>actionToBePerformed<\/strong>[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.<\/li><li><strong>localFileName<\/strong>[(NS)String]: It is a guid<\/li><li><strong>fileIsAvailable<\/strong>[BOOL\/boolean]: Not used in the SDK<\/li><\/ul>\n\n\n\n<p>Also, the class has the method &#8220;reasonFileIsNotAvailable&#8221;. This method is not currently used in the SDK, but you may find it useful. For example, you may set the <strong>fileIsAvailable<\/strong> flag to false, and this method will describe the reason for that decision.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-672","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Item - Rainbow SDK<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dev.i-smartcloud.com\/index.php\/item\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Item - Rainbow SDK\" \/>\n<meta property=\"og:description\" content=\"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...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dev.i-smartcloud.com\/index.php\/item\/\" \/>\n<meta property=\"og:site_name\" content=\"Rainbow SDK\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-04T21:47:21+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dev.i-smartcloud.com\/index.php\/item\/\",\"url\":\"https:\/\/dev.i-smartcloud.com\/index.php\/item\/\",\"name\":\"Item - Rainbow SDK\",\"isPartOf\":{\"@id\":\"https:\/\/dev.i-smartcloud.com\/#website\"},\"datePublished\":\"2020-03-04T21:44:53+00:00\",\"dateModified\":\"2020-03-04T21:47:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dev.i-smartcloud.com\/index.php\/item\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dev.i-smartcloud.com\/index.php\/item\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dev.i-smartcloud.com\/index.php\/item\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dev.i-smartcloud.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Item\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dev.i-smartcloud.com\/#website\",\"url\":\"https:\/\/dev.i-smartcloud.com\/\",\"name\":\"Rainbow SDK\",\"description\":\"The Rainbow Cloud Manager at your disposal\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dev.i-smartcloud.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Item - Rainbow SDK","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dev.i-smartcloud.com\/index.php\/item\/","og_locale":"en_US","og_type":"article","og_title":"Item - Rainbow SDK","og_description":"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...","og_url":"https:\/\/dev.i-smartcloud.com\/index.php\/item\/","og_site_name":"Rainbow SDK","article_modified_time":"2020-03-04T21:47:21+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dev.i-smartcloud.com\/index.php\/item\/","url":"https:\/\/dev.i-smartcloud.com\/index.php\/item\/","name":"Item - Rainbow SDK","isPartOf":{"@id":"https:\/\/dev.i-smartcloud.com\/#website"},"datePublished":"2020-03-04T21:44:53+00:00","dateModified":"2020-03-04T21:47:21+00:00","breadcrumb":{"@id":"https:\/\/dev.i-smartcloud.com\/index.php\/item\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dev.i-smartcloud.com\/index.php\/item\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dev.i-smartcloud.com\/index.php\/item\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dev.i-smartcloud.com\/"},{"@type":"ListItem","position":2,"name":"Item"}]},{"@type":"WebSite","@id":"https:\/\/dev.i-smartcloud.com\/#website","url":"https:\/\/dev.i-smartcloud.com\/","name":"Rainbow SDK","description":"The Rainbow Cloud Manager at your disposal","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dev.i-smartcloud.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/dev.i-smartcloud.com\/index.php\/wp-json\/wp\/v2\/pages\/672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.i-smartcloud.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dev.i-smartcloud.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dev.i-smartcloud.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.i-smartcloud.com\/index.php\/wp-json\/wp\/v2\/comments?post=672"}],"version-history":[{"count":5,"href":"https:\/\/dev.i-smartcloud.com\/index.php\/wp-json\/wp\/v2\/pages\/672\/revisions"}],"predecessor-version":[{"id":680,"href":"https:\/\/dev.i-smartcloud.com\/index.php\/wp-json\/wp\/v2\/pages\/672\/revisions\/680"}],"wp:attachment":[{"href":"https:\/\/dev.i-smartcloud.com\/index.php\/wp-json\/wp\/v2\/media?parent=672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}