All files / src ComplexTypes.ts

100% Statements 9/9
100% Branches 0/0
100% Functions 1/1
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62                                                          1x             1x 1x 1x 1x       1x       1x       1x             1x      
/**
 * @module ComplexTypes
 * @preferred
 *
 * @description Module containing complex data types like HyperLink or ChoiceOption.
 *
 * This module is autogenerated from Sense/Net ContentRepository.
 *
 * ```
 * let link = new Fields.HyperlinkData({
 *   Href: 'http://sensenet.com',
 *   Text: 'Link to sensenet.com',
 *   Title: 'Go to sensenet.com',
 *   Target: '_blank'
 * });
 *
 * let webContent = new ContentTypes.WebContentDemo({
 *   Id: 1,
 *   Name: 'MyContent',
 *   DisplayName: 'My Content',
 *   Type: 'WebContentDemo',
 *   Details: link
 * });
 *
 * ```
 */ /** */
 
// tslint:disable:naming-convention
 
export class ChoiceOption {
    public Value: string;
    public Text?: string;
    public Enabled?: boolean;
    public Selected?: boolean;
 
    constructor(value: string, text?: string, enabled?: boolean, selected?: boolean) {
        this.Value = value;
        this.Text = text;
        this.Enabled = enabled;
        this.Selected = selected;
    }
}
 
export class DeferredUriObject {
    public uri: string;
}
 
export class DeferredObject extends Object {
    public __deferred: DeferredUriObject;
}
 
export class MediaObject {
    public edit_media: string;
    public media_src: string;
    public content_type: string;
    public media_etag: string;
}
 
export class MediaResourceObject extends Object {
    public __mediaresource: MediaObject;
}