All files / sn-client-js/src/ODataApi ODataRequestOptions.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2
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            1x                   34x                        
/**
 * @module ODataApi
 */ /** */
 
import { ODataParams } from './';
 
export class ODataRequestOptions {
    path: string;
    params?: ODataParams;
    async: boolean;
    type: string;
    success?: Function;
    error?: Function;
    complete?: Function;
 
    constructor(options: IODataRequestOptions) {
        Object.assign(this, options);
    }
}
 
export interface IODataRequestOptions {
    path: string;
    params?: ODataParams;
    async?: boolean;
    type?: string;
    success?: Function;
    error?: Function;
    complete?: Function;
}