arrakis-js
Version:
Arrakis Javascript client library
20 lines (19 loc) • 542 B
JavaScript
export class Channel {
name;
dataType;
sampleRate;
time;
publisher;
partitionID;
constructor(name, dataType, sampleRate, time, publisher, partitionID) {
this.name = name;
this.dataType = dataType;
this.sampleRate = sampleRate;
this.time = time;
this.publisher = publisher;
this.partitionID = partitionID;
}
static fromJson(json) {
return new Channel(json.name, json.data_type, json.sample_rate, json.time, json.publisher, json.partition_id);
}
}