-
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.
generate new client based on 06-03-2023 reset
- Loading branch information
Showing
11 changed files
with
715 additions
and
16 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,73 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* SpaceTraders API | ||
* SpaceTraders is an open-universe game and learning platform that offers a set of HTTP endpoints to control a fleet of ships and explore a multiplayer universe. The API is documented using [OpenAPI](https://github.com/SpaceTradersAPI/api-docs). You can send your first request right here in your browser to check the status of the game server. ```json http { \"method\": \"GET\", \"url\": \"https://api.spacetraders.io/v2\", } ``` Unlike a traditional game, SpaceTraders does not have a first-party client or app to play the game. Instead, you can use the API to build your own client, write a script to automate your ships, or try an app built by the community. We have a [Discord channel](https://discord.com/invite/jh6zurdWk5) where you can share your projects, ask questions, and get help from other players. | ||
* | ||
* The version of the OpenAPI document: 2.0.0 | ||
* Contact: joel@spacetraders.io | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists, mapValues } from '../runtime'; | ||
import type { ShipMount } from './ShipMount'; | ||
import { | ||
ShipMountFromJSON, | ||
ShipMountFromJSONTyped, | ||
ShipMountToJSON, | ||
} from './ShipMount'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface GetMounts200Response | ||
*/ | ||
export interface GetMounts200Response { | ||
/** | ||
* | ||
* @type {Array<ShipMount>} | ||
* @memberof GetMounts200Response | ||
*/ | ||
data: Array<ShipMount>; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the GetMounts200Response interface. | ||
*/ | ||
export function instanceOfGetMounts200Response(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "data" in value; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function GetMounts200ResponseFromJSON(json: any): GetMounts200Response { | ||
return GetMounts200ResponseFromJSONTyped(json, false); | ||
} | ||
|
||
export function GetMounts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMounts200Response { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'data': ((json['data'] as Array<any>).map(ShipMountFromJSON)), | ||
}; | ||
} | ||
|
||
export function GetMounts200ResponseToJSON(value?: GetMounts200Response | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'data': ((value.data as Array<any>).map(ShipMountToJSON)), | ||
}; | ||
} | ||
|
Oops, something went wrong.