ArcGISKit Documentation

Structure Content​Item

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

%147 ContentItem ContentItem Codable Codable ContentItem->Codable Equatable Equatable ContentItem->Equatable

Conforms To

Codable
Equatable

Properties

id

public let id: String

The unique ID for this item.

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.

name

public let name: String? 

The file name of the item for file types. Read-only.

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.

type​Keywords

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.

owner

public let owner: String? 

The username of the user who owns this item.

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.

size

public let size: Int? 

The size of the item in bytes.

protected

public let protected: Bool? 

Protects the item from deletion. false is the default.

comments​Enabled

public let commentsEnabled: Bool? 

Indicates if comments are allowed on the item.

is​Org​Item

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.

snippet

public let snippet: String? 

A short summary description of the item.

description

public let description: String? 

Item description.

documentation

public let documentation: String? 

categories

public let categories: [String]? 

An array of organization categories that are set on the item.

app​Categories

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.

culture

public let culture: String? 

The item locale information (language and country).

languages

public let languages: [String]? 

An array that primarily applies to languages associated with the application.

tags

public let tags: [String]? 

An array of user defined tags that describe the item.

access

public let access: Access? 

Indicates the level of access to the item.

access​Information

public let accessInformation: String? 

Information on the source of the item and its copyright status.

license​Info

public let licenseInfo: String? 

Any license information or restrictions.

industries

public let industries: [String]? 

An array that primarily applies to industries associated with the application.

listed

public let listed: Bool? 

If true, the item is listed in the marketplace

owner​Folder

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.

num​Comments

public let numComments: Int? 

Number of comments on the item.

num​Rating

public let numRating: Int? 

Number of ratings on the item.

avg​Rating

public let avgRating: Double? 

Average rating. Uses a weighted average called "Bayesian average."

num​Views

public let numViews: Int? 

Number of views of the item.

item​Control

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)

score​Completeness

public let scoreCompleteness: Double? 

Item information completeness score based upon item snippet, thumbnail, description, title, tags etc.

spatial​Reference

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.