Skip to content

Commit

Permalink
Statistics Api mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Laszlo committed Feb 7, 2017
1 parent 4873c8e commit 81d2f47
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## slamby-sdk-angular2@1.5.1
## slamby-sdk-angular2@1.5.2

### Building

Expand All @@ -19,7 +19,7 @@ navigate to the folder of your consuming project and run one of next commando's.
_published:_

```
npm install slamby-sdk-angular2@1.5.1 --save
npm install slamby-sdk-angular2@1.5.2 --save
```

_unPublished (not recommended):_
Expand Down
70 changes: 69 additions & 1 deletion api/StatisticsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class StatisticsApi {
*
*/
public getStatistics (extraHttpRequestParams?: any ) : Observable<models.IStatisticsWrapper> {
const path = this.basePath + '/api/Statistics/{year}/{month}';
const path = this.basePath + '/api/Statistics';

let queryParameters = new URLSearchParams();
let headerParams = this.defaultHeaders;
Expand All @@ -68,4 +68,72 @@ export class StatisticsApi {
});
}

/**
*
*
* @param year
*/
public getStatistics_1 (year: number, extraHttpRequestParams?: any ) : Observable<models.IStatisticsWrapper> {
const path = this.basePath + '/api/Statistics/{year}'
.replace('{' + 'year' + '}', String(year));

let queryParameters = new URLSearchParams();
let headerParams = this.defaultHeaders;
// verify required parameter 'year' is not null or undefined
if (year === null || year === undefined) {
throw new Error('Required parameter year was null or undefined when calling getStatistics_1.');
}
let requestOptions: RequestOptionsArgs = {
method: 'GET',
headers: headerParams,
search: queryParameters
};

return this.http.request(path, requestOptions)
.map((response: Response) => {
if (response.status === 204) {
return undefined;
} else {
return response.text() ? response.json() : undefined;
}
});
}

/**
*
*
* @param year
* @param month
*/
public getStatistics_2 (year: number, month: number, extraHttpRequestParams?: any ) : Observable<models.IStatisticsWrapper> {
const path = this.basePath + '/api/Statistics/{year}/{month}'
.replace('{' + 'year' + '}', String(year))
.replace('{' + 'month' + '}', String(month));

let queryParameters = new URLSearchParams();
let headerParams = this.defaultHeaders;
// verify required parameter 'year' is not null or undefined
if (year === null || year === undefined) {
throw new Error('Required parameter year was null or undefined when calling getStatistics_2.');
}
// verify required parameter 'month' is not null or undefined
if (month === null || month === undefined) {
throw new Error('Required parameter month was null or undefined when calling getStatistics_2.');
}
let requestOptions: RequestOptionsArgs = {
method: 'GET',
headers: headerParams,
search: queryParameters
};

return this.http.request(path, requestOptions)
.map((response: Response) => {
if (response.status === 204) {
return undefined;
} else {
return response.text() ? response.json() : undefined;
}
});
}

}
2 changes: 1 addition & 1 deletion model/ISearchSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface ISearchSettings {
CutOffFrequency?: number;

/**
* Interpreted as a Levenshtein Edit Distance — the number of one character changes that need to be made to one string to make it the same as another string. Can be specified as: -1 (generates an edit distance based on the length of the term) or 0, 1, 2 (the maximum allowed Levenshtein Edit Distance)
* Interpreted as a Levenshtein Edit Distance — the number of one character changes that need to be made to one string to make it the same as another string. Can be specified as: -1 (generates an edit distance based on the length of the term) or 0, 1, 2 (the maximum allowed Levenshtein Edit Distance)
*/
Fuzziness?: number;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slamby-sdk-angular2",
"version": "1.5.1",
"version": "1.5.2",
"description": "swagger client for slamby-sdk-angular2",
"author": "Swagger Codegen Contributors",
"keywords": [
Expand Down

0 comments on commit 81d2f47

Please sign in to comment.