Something went wrong. Try again.
TypeScript client for accessing TLE Community.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657import Lacuna from '../lacuna';import Endpoint from '../core/endpoint';import * as B from '../types/body';
class Body extends Endpoint { lacuna: Lacuna; module: string;
constructor(lacuna: Lacuna, module: string) { super(); this.lacuna = lacuna; this.module = module; }
getBuildings(params: B.GetBuildingsParams) { return this.withBuildingIds( this.callWithSession<B.GetBuildingsResponse>('get_buildings', params) ); }
getBuildingsResources(params: B.GetBuildingsResourcesParams) { return this.withBuildingIds( this.callWithSession<B.GetBuildingsResourcesResponse>('get_buildings_resources', params) ); }
getStatus(params: B.GetStatusParams) { return this.callWithSession<B.GetStatusResponse>('get_status', params); }
getBodyStatus(params: B.GetBodyStatusParams) { return this.callWithSession<B.GetBodyStatusResponse>('get_body_status', params); }
rearrangeBuildings(params: B.RearrangeBuildingsParams) { return this.callWithSession<B.RearrangeBuildingsResponse>('rearrange_buildings', params); }
getBuildable(params: B.GetBuildableParams) { return this.callWithSession<B.GetBuildableResponse>('get_buildable', params); }
abandon(params: B.AbandonParams) { return this.callWithSession<B.AbandonResponse>('abandon', params); }
rename(params: B.RenameParams) { return this.callWithSession<B.RenameResponse>('rename', params); }
setColonyNotes(params: B.SetColonyNotesParams) { return this.callWithSession<B.SetColonyNotesResponse>('set_colony_notes', params); }}
export default Body;