Constructor
new Collection(collectionMetadata, alliances, users)
constructor - Creates an instance of Collection based on the given data.
Parameters:
Name | Type | Description |
---|---|---|
collectionMetadata |
CollectionMetadata | The metadata of the Collection. |
alliances |
Array.<PssAlliance> | The PssAlliances (fleets) recorded in this Collection. May be empty. |
users |
Array.<PssUser> | The PssUsers (players) recorded in this Collection. May be empty. |
- Source:
Members
alliances :Array.<PssAlliance>
alliances - The PssAlliances (fleets) recorded in this Collection. Might be empty.
Type:
- Array.<PssAlliance>
- Source:
metadata :CollectionMetadata
metadata - The metadata of the Collection.
Type:
- CollectionMetadata
- Source:
users :Array.<PssUser>
users - The PssUsers (players) recorded in this Collection. Might be empty.
Type:
- Array.<PssUser>
- Source:
Methods
(static) fromJson(json)
Creates an instance of CollectionMetadata from an object parsed from the JSON returned by the PSS Fleet Data API.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
json |
object | The metadata of the Collection as parsed from the response of the API. Properties
|
- Source:
Returns:
Collection - An new instance of Collection.