All files / sn-client-js/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                                                      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
* });
*
* ```
*/ /** */
 
export class ChoiceOption {
    Value: string;
    Text?: string;
    Enabled?: boolean;
    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 {
    uri: string;
}
 
export class DeferredObject extends Object {
    __deferred: DeferredUriObject;
}
 
export class MediaObject {
    edit_media: string;
    media_src: string;
    content_type: string;
    media_etag: string;
}
 
export class MediaResourceObject extends Object {
    __mediaresource: MediaObject;
}