Structure
ContentItem
public struct ContentItem: Codable, Equatable
An item (a unit of content) in the portal. Each item has a unique identifier and a well known URL that is independent of the user owning the item.
An item can have associated JSON data that's available via the item data resource. For example, an item of type Map Package returns the actual bits corresponding to the map package via the item data resource.
The numViews
is incremented when an item is opened.
-
Reference: https://developers.arcgis.com/rest/users-groups-and-items/item.htm
Relationships
Conforms To
Codable
Equatable
Properties
title
public let title: String
The title of the item. This is the name that's displayed to users and by which they refer to the item. Every item must have a title.
type
public let type: String
The GIS content type of this item.
Example types include Web Map, Map Service, Shapefile, and Web Mapping Application.
See the overview section of Items and item types to get an understanding of the item type hierarchy.
typeKeywords
public let typeKeywords: [String]?
An array of keywords that further describes the type of this item. Each item is tagged with a set of type keywords that are derived based on its primary type.
url
public let url: String?
The URL for the resource represented by the item. Applies only to items that represent web-accessible resources such as map services.
isOrgItem
public let isOrgItem: Bool?
guid
public let guid: String?
created
@Immutable @OptionalCoding<MillisecondsSince1970DateCoding>
public var created: Date?
The date the item was created. Shown in UNIX time in milliseconds.
modified
@Immutable @OptionalCoding<MillisecondsSince1970DateCoding>
public var modified: Date?
The date the item was last modified. Shown in UNIX time in milliseconds.
documentation
public let documentation: String?
categories
public let categories: [String]?
An array of organization categories that are set on the item.
appCategories
public let appCategories: [String]?
An array that primarily applies to a list of categories that the application item is applicable to.
thumbnail
public let thumbnail: String?
Primarily applies to thumbnails associated with an application. The URL to the thumbnail used for the application.
banner
public let banner: String?
Primarily applies to the banner associated with an application. The URL to the banner used for the application.
screenshots
public let screenshots: [String]?
An array that primarily applies to screenshots associated with an application. The URL to the screenshots used for the application.
languages
public let languages: [String]?
An array that primarily applies to languages associated with the application.
accessInformation
public let accessInformation: String?
Information on the source of the item and its copyright status.
industries
public let industries: [String]?
An array that primarily applies to industries associated with the application.
ownerFolder
public var ownerFolder: String?
The ID of the folder in which the owner has stored the item. The property is only returned to the item owner or the org admin.
avgRating
public let avgRating: Double?
Average rating. Uses a weighted average called "Bayesian average."
itemControl
public let itemControl: ItemControl?
(Optional) Indicates user's control to the item.
Values: admin
(for item owner and org admin) | update
(for members of groups with item update capability that
the item is shared with)
scoreCompleteness
public let scoreCompleteness: Double?
Item information completeness score based upon item snippet, thumbnail, description, title, tags etc.
spatialReference
public let spatialReference: Either<String, SpatialReference>?
The coordinate system of the item.
extent
public let extent: [[Double]]?
An array that defines the bounding rectangle of the item. Should always be in WGS84.