Models & Enums

In the SDK Multi Mode different Models & Enums are used in the SDK Multi Mode functions. These are listed below:


Model Imprint

Imprint is a property within the ProjectModel. The properties of Imprint are set per contentApp in its settings in the contentDock Management System.

Model Imprint
Imprint:
    NSString *companyAdditional;
    NSString *address1;
    NSString *address2;
    NSString *city;
    NSString *company;
    NSString *copyright;
    NSString *country;
    NSString *edited;
    NSString *fax;
    NSString *legalInform;
    NSString *mail;
    NSString *phone;
    NSString *url;
    NSString *zip;

Model ProjectImage

ProjectImage is a property within the ProjectModel. The properties of ProjectImage are set per contentApp in the contentDock Management System. The images of ProjectImage are the screenshots that exist of each contentApp page. It is not the main image of a contentApp. This property is in the ProjectModel itself.

Model ProjectImage
ProjectImage:
    BOOL isShow;
    NSString *url;

ProjectModel

The ProjectModel contains all necessary properties to display a contentApp in the lists and detail view. Each contentApp is stored in the SDK Multi Mode in a ProjectModel. How the ProjectModel is used is described on the SDK Multi Mode functional pages.

ProjectModel
ProjectModel:
    NSString *projectDetails; // Short description text
    NSString *publishDate; // Publish date
    NSString *title; // Title text
    NSString *tags; // The selected categories 
    NSString *projectDescription; // Long description text
    NSString *version; // Version number
    NSString *versionLocal; // Local installed version number
    NSString *mainImage; // Main image
    int projectId; // Project ID
    BOOL ageFlag; // When true, then it's +18 content
    BOOL locked; // When true, then the Project has a active worker task (e.g. Publish process) 
    BOOL isPreview; // is true, when it's a preview version only
    Imprint *imprint; // Imprint model
    NSMutableArray<ProjectImage *> *arrImages; // Additional images

CategoryModel

The CategoryModel is used in the Categories and Search area.

CategoryModel
CategoryModel:
    NSString *title;
    NSString *imageURL;
    int categoryId;

Enum CDDockSDKProjectState

Enum: CDockSDKCallbackType
CDDockSDKProjectState:
    none // contentApp is not installed locally 
    syncInProgress // contentApp is currently being installed
    syncFinished // contentApp is installed / synchronized
    syncInterrupted // Installation was interrupted (app closed or connection problems)
    needUpdate // A new version is available for the contentApp

Enum CDockSDKCallbackType

Enum: CDockSDKCallbackType
CDockSDKCallbackType:   
    syncProgress // Installation / Update in progress
    syncSuccess // Installation / Update successfully completed
    syncFailed // Installation / Update is aborted
    syncEstimate // Calculated time to complete installation / Update

More information


Feedback or Questions

We are always happy to help you with questions about the code or other questions.

Was this page helpful? Yes No

Topics on this page