-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc6ddb6
commit 66f61cc
Showing
7 changed files
with
239 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* EAS API | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { mapValues } from '../runtime'; | ||
import type { DrawMetadata } from './DrawMetadata'; | ||
import { | ||
DrawMetadataFromJSON, | ||
DrawMetadataFromJSONTyped, | ||
DrawMetadataToJSON, | ||
} from './DrawMetadata'; | ||
import type { BaseFields } from './BaseFields'; | ||
import { | ||
BaseFieldsFromJSON, | ||
BaseFieldsFromJSONTyped, | ||
BaseFieldsToJSON, | ||
} from './BaseFields'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface CreateRandomNumberPayload | ||
*/ | ||
export interface CreateRandomNumberPayload extends BaseFields { | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof CreateRandomNumberPayload | ||
*/ | ||
rangeMin: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof CreateRandomNumberPayload | ||
*/ | ||
rangeMax: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof CreateRandomNumberPayload | ||
*/ | ||
numberOfResults: number; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof CreateRandomNumberPayload | ||
*/ | ||
allowRepeatedResults: boolean; | ||
} | ||
|
||
|
||
|
||
/** | ||
* Check if a given object implements the CreateRandomNumberPayload interface. | ||
*/ | ||
export function instanceOfCreateRandomNumberPayload(value: object): value is CreateRandomNumberPayload { | ||
if (!('rangeMin' in value) || value['rangeMin'] === undefined) return false; | ||
if (!('rangeMax' in value) || value['rangeMax'] === undefined) return false; | ||
if (!('numberOfResults' in value) || value['numberOfResults'] === undefined) return false; | ||
if (!('allowRepeatedResults' in value) || value['allowRepeatedResults'] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function CreateRandomNumberPayloadFromJSON(json: any): CreateRandomNumberPayload { | ||
return CreateRandomNumberPayloadFromJSONTyped(json, false); | ||
} | ||
|
||
export function CreateRandomNumberPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRandomNumberPayload { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
...BaseFieldsFromJSONTyped(json, ignoreDiscriminator), | ||
'rangeMin': json['range_min'], | ||
'rangeMax': json['range_max'], | ||
'numberOfResults': json['number_of_results'], | ||
'allowRepeatedResults': json['allow_repeated_results'], | ||
}; | ||
} | ||
|
||
export function CreateRandomNumberPayloadToJSON(value?: CreateRandomNumberPayload | null): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
...BaseFieldsToJSON(value), | ||
'range_min': value['rangeMin'], | ||
'range_max': value['rangeMax'], | ||
'number_of_results': value['numberOfResults'], | ||
'allow_repeated_results': value['allowRepeatedResults'], | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* EAS API | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { mapValues } from '../runtime'; | ||
/** | ||
* | ||
* @export | ||
* @interface RandomNumberFields | ||
*/ | ||
export interface RandomNumberFields { | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof RandomNumberFields | ||
*/ | ||
rangeMin: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof RandomNumberFields | ||
*/ | ||
rangeMax: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof RandomNumberFields | ||
*/ | ||
numberOfResults: number; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof RandomNumberFields | ||
*/ | ||
allowRepeatedResults: boolean; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the RandomNumberFields interface. | ||
*/ | ||
export function instanceOfRandomNumberFields(value: object): value is RandomNumberFields { | ||
if (!('rangeMin' in value) || value['rangeMin'] === undefined) return false; | ||
if (!('rangeMax' in value) || value['rangeMax'] === undefined) return false; | ||
if (!('numberOfResults' in value) || value['numberOfResults'] === undefined) return false; | ||
if (!('allowRepeatedResults' in value) || value['allowRepeatedResults'] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function RandomNumberFieldsFromJSON(json: any): RandomNumberFields { | ||
return RandomNumberFieldsFromJSONTyped(json, false); | ||
} | ||
|
||
export function RandomNumberFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RandomNumberFields { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
|
||
'rangeMin': json['range_min'], | ||
'rangeMax': json['range_max'], | ||
'numberOfResults': json['number_of_results'], | ||
'allowRepeatedResults': json['allow_repeated_results'], | ||
}; | ||
} | ||
|
||
export function RandomNumberFieldsToJSON(value?: RandomNumberFields | null): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
|
||
'range_min': value['rangeMin'], | ||
'range_max': value['rangeMax'], | ||
'number_of_results': value['numberOfResults'], | ||
'allow_repeated_results': value['allowRepeatedResults'], | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters