File

compodocs/smartedit/services/RestServiceFactory.ts

Example

Index

Methods

Constructor

constructor(delegateRestService: DelegateRestService)
Parameters :
Name Type Optional
delegateRestService DelegateRestService No

Methods

get
get(uri: string, identifier?: string)
Type parameters :
  • T
Parameters :
Name Type Optional
uri string No
identifier string Yes
Returns : IRestService<T>
import { Injectable } from '@angular/core';
import { IRestService, IRestServiceFactory, SeDowngradeService } from 'smarteditcommons';
import { DelegateRestService } from './DelegateRestServiceInner';
import { RestService } from './RestService';

/** @internal */
@Injectable()
@Injectable()
export class RestServiceFactory implements IRestServiceFactory {
    constructor(private delegateRestService: DelegateRestService) {}

    get<T>(uri: string, identifier?: string): IRestService<T> {
        return new RestService<T>(this.delegateRestService, uri, identifier);
    }
}

result-matching ""

    No results matching ""