mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-08-23 16:09:16 +00:00
align structure more with underlying chunk layout
This commit is contained in:
@@ -3,8 +3,12 @@ import { PacketHeaderChunk } from '../packet-header-chunk';
|
||||
import { InfoSystemNameChunk } from './info-system-name-chunk';
|
||||
import { InfoTrackerListChunk } from './info-tracker-list-chunk';
|
||||
|
||||
export interface InfoPacketChunk extends Chunk {
|
||||
packet_header: PacketHeaderChunk;
|
||||
system_name: InfoSystemNameChunk;
|
||||
tracker_list: InfoTrackerListChunk;
|
||||
export interface InfoPacketChunkData {
|
||||
packetHeader?: PacketHeaderChunk;
|
||||
systemName?: InfoSystemNameChunk;
|
||||
trackerList?: InfoTrackerListChunk;
|
||||
}
|
||||
export interface InfoPacketChunk {
|
||||
chunk: Chunk;
|
||||
data: InfoPacketChunkData;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import { Chunk } from '../chunk';
|
||||
|
||||
export interface InfoSystemNameChunk extends Chunk {
|
||||
system_name: string;
|
||||
export interface InfoSystemNameChunkData {
|
||||
systemName: string;
|
||||
}
|
||||
|
||||
export interface InfoSystemNameChunk {
|
||||
chunk: Chunk;
|
||||
data: InfoSystemNameChunkData;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
import { Chunk } from '../chunk';
|
||||
import { InfoTrackerNameChunk } from './info-tracker-name-chunk';
|
||||
|
||||
export interface InfoTrackerChunk extends Chunk {
|
||||
tracker_name?: InfoTrackerNameChunk;
|
||||
export interface InfoTrackerChunkData {
|
||||
trackerName: InfoTrackerNameChunk;
|
||||
}
|
||||
|
||||
export interface InfoTrackerChunk {
|
||||
chunk: Chunk;
|
||||
data?: InfoTrackerChunkData;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
import { Chunk } from '../chunk';
|
||||
import { InfoTrackerChunk } from './info-tracker-chunk';
|
||||
|
||||
export interface InfoTrackerListChunk extends Chunk {
|
||||
trackers: {
|
||||
[key: number]: InfoTrackerChunk;
|
||||
};
|
||||
export interface InfoTrackerListChunkData {
|
||||
trackers: InfoTrackerChunk[];
|
||||
}
|
||||
|
||||
export interface InfoTrackerListChunk {
|
||||
chunk: Chunk;
|
||||
data: InfoTrackerListChunkData;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import { Chunk } from '../chunk';
|
||||
|
||||
export interface InfoTrackerNameChunk extends Chunk {
|
||||
tracker_name: string;
|
||||
export interface InfoTrackerNameChunkData {
|
||||
trackerName: string;
|
||||
}
|
||||
|
||||
export interface InfoTrackerNameChunk {
|
||||
chunk: Chunk;
|
||||
data: InfoTrackerNameChunkData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user